Skip to content

Function: parseEventTypeFromMessage() ​

ts
function parseEventTypeFromMessage(wsKey: WsKey, parsedMsg?: any): string | undefined;

Some of the newer multiplex websocket topics don't include an eventType ("e") property.

This attempts to extract that from the streamName, which is included with these incoming events.

Parameters ​

ParameterType
wsKeyWsKey
parsedMsg?any

Returns ​

string | undefined

Built by Siebly. Open source SDKs for exchange APIs.