ReadonlystatusCurrent connection lifecycle state.
ReadonlytransportWhich concrete transport is active.
Establish a connection to (or create) the specified room.
Room credentials and mode selection.
Resolves when the connection is ready to send and receive events.
Tear down the connection and release all resources.
Subscribe to incoming events.
Called for every event received.
An unsubscribe function — call it to stop receiving events.
Send an event to the other side of the connection.
Any TransportEvent variant.
Common interface implemented by transport/PeerJSTransport.PeerJSTransport and transport/GunTransport.GunTransport.
Remarks
All transports are one-room-per-instance. Call
connect()once per session; calldisconnect()before switching rooms or transport modes.