@mocanvas/sync · interface
interface UseSyncOptionsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 8
clientId?: stringenabled?: booleanSet false to stay offline (a read-only view, say). Default true.
onError?: (error: Error) => voidpresence?: booleanShare this editor's cursor and selection. Default true.
presenceThrottleMs?: numberpresenceTimeoutMs?: numberroomId: stringtransport: Transport | (() => Transport)The channel to the room. Pass a factory when the transport should be recreated with the room (the usual case); it is read once per connection.
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.