@mocanvas/sync · interface

WebSocketTransportOptions

interface WebSocketTransportOptions

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 4

maxDelayMs?: number

Backoff ceiling in ms. Default 15000.

minDelayMs?: number

First backoff delay in ms. Default 500.

reconnect?: boolean

Reconnect with exponential backoff after an unexpected close. Default true.

WebSocketImpl?: typeof WebSocket

Injectable for tests and for Node (ws). Defaults to globalThis.WebSocket.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.