Skip to content

Function: getPromiseRefForWSAPIRequest() ​

ts
function getPromiseRefForWSAPIRequest(wsKey: WsKey, requestEvent: WsRequestOperationBinance<string>): string;

WS API promises are stored using a primary key. This key is constructed using properties found in every request & reply.

The counterpart to this is in resolveEmittableEvents

Parameters ​

ParameterType
wsKeyWsKey
requestEventWsRequestOperationBinance<string>

Returns ​

string

Built by Siebly. Open source SDKs for exchange APIs.