Networking · interface
WebSocketTransportOptions
Explained in Networking and rollback.
interface WebSocketTransportOptionsimport type { WebSocketTransportOptions } from '@driftengine/network';Properties
| Name | Type | Description |
|---|---|---|
socketreadonly | SocketLike | |
selfreadonlyoptional | PeerId | This end's id, or -1 to wait for a host to assign one through a welcome. |
maxQueuedreadonlyoptional | number | How many messages may queue before the oldest is dropped.MoreA bound rather than none, because a socket that stops draining is a socket behind a paused tab or a stalled link, and an unbounded queue there is a leak that ends the session with a crash instead of a disconnection. The oldest goes, because in a simulation the newest input is the one still worth having. |