Skip to content

Interface: ConnectionHandlers

Lifecycle callbacks the owning client wires up.

Properties

onClose?

optional onClose?: () => void

Called when the socket closes.

Returns

void


onMessage?

optional onMessage?: (data) => void

Called with each inbound text frame.

Parameters

data

string

Returns

void


onOpen?

optional onOpen?: () => void

Called when the socket opens (after the outbox is flushed).

Returns

void