Documentation
Client
Type-aliases
EventClosedListener

Type Alias: EventClosedListener()

EventClosedListener: (event) => void

Defined in: src/client.ts:167

The argument is actually the websocket CloseEvent, but to avoid bundling DOM typings because the client can run in Node env too, you should assert the websocket type during implementation.

Parameters

event

unknown

Returns

void