Interface: ConnectionHandlers¶
Lifecycle callbacks the owning client wires up.
Properties¶
onClose?¶
optionalonClose?: () =>void
Called when the socket closes.
Returns¶
void
onMessage?¶
optionalonMessage?: (data) =>void
Called with each inbound text frame.
Parameters¶
data¶
string
Returns¶
void
onOpen?¶
optionalonOpen?: () =>void
Called when the socket opens (after the outbox is flushed).
Returns¶
void