OptionalonCalled once, when the connection closes for any reason.
The closed connection
The close code and reason
OptionalonCalled on a transport error, and on a rejected promise from any other callback.
The affected connection
The error
OptionalonCalled for every inbound frame.
The connection that received the frame
Text as string, binary as Uint8Array
OptionalonCalled once per connection, after the handshake completes.
The new connection
Details of the upgrade request
The lifecycle callbacks an application supplies per WebSocket route.
Every callback may be async; a rejected promise is routed to
WebSocketHandlers.onErrorrather than becoming an unhandled rejection.Since
0.2.0