@mocanvas/sync · function
declare function createWebSocketTransport<R extends UnknownRecord = UnknownRecord>(url: string, options?: WebSocketTransportOptions): Transport<R>A WebSocket to a relay (see scripts/relay.mjs). Messages sent while the
socket is down are dropped rather than queued: the next hello/snapshot
exchange re-establishes the document anyway, and presence is re-sent on a
heartbeat.
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.