Appearance
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.
event
evtData
unknown
evtData is WsEvent