Maps each TransportEvent to its handler argument tuple, giving the Transport event emitter fully typed on/once/off signatures.
on
once
off
Socket closed; carries the WebSocket close code and reason.
code
reason
A transport error occurred.
A validated inbound ServerMessage was received.
Socket opened; no arguments.
A reconnect attempt began; carries the 1-based attempt number.
Maps each TransportEvent to its handler argument tuple, giving the Transport event emitter fully typed
on/once/offsignatures.