Skip to content

Function: isWsEvent() ​

ts
function isWsEvent(evtData: unknown): evtData is WsEvent;

Check that the value is a non-null object with an event property. This does not validate the event name or the rest of the payload.

Parameters ​

ParameterType
evtDataunknown

Returns ​

evtData is WsEvent

Built by Siebly. Open source SDKs for exchange APIs.