Type Alias: EventConnectedListener()
EventConnectedListener: (
socket
,payload
,wasRetry
) =>void
Defined in: src/client.ts:124
The first argument is actually the WebSocket
, but to avoid
bundling DOM typings because the client can run in Node env too,
you should assert the websocket type during implementation.
Also, the second argument is the optional payload that the server may
send through the ConnectionAck
message.
Parameters
socket
unknown
payload
ConnectionAckMessage
["payload"
]
wasRetry
boolean
Returns
void