Properties
_WS
_WS : WebSocketPolyfillType
Defined in src/websocket.ts:230
_awareness Update Handler
_awareness Update Handler : Function
Defined in src/websocket.ts:245
_bc Subscriber
_bc Subscriber : Function
Defined in src/websocket.ts:243
_check Interval
_check Interval : number | Timer
Defined in src/websocket.ts:247
_observers
_observers : Map < string , any >
_resync Interval
_resync Interval : number | Timer
Defined in src/websocket.ts:242
_synced
_synced : boolean
Defined in src/websocket.ts:238
_unload Handler
_unload Handler : Function
Defined in src/websocket.ts:246
_update Handler
_update Handler : Function
Defined in src/websocket.ts:244
awareness
awareness : Awareness
Defined in src/websocket.ts:231
bc Channel
bc Channel : string
Defined in src/websocket.ts:226
bcconnected
bcconnected : boolean
Defined in src/websocket.ts:234
disable Bc
disable Bc : boolean
Defined in src/websocket.ts:235
doc
doc : Doc
Defined in src/websocket.ts:229
max Backoff Time
max Backoff Time : number
Defined in src/websocket.ts:225
message Handlers
message Handlers : HandlerFunction []
Defined in src/websocket.ts:237
roomname
roomname : string
Defined in src/websocket.ts:228
should Connect
should Connect : boolean
Defined in src/websocket.ts:241
url
url : string
Defined in src/websocket.ts:227
ws
ws : null | WebSocket
Defined in src/websocket.ts:239
ws Last Message Received
ws Last Message Received : number
Defined in src/websocket.ts:240
ws Unsuccessful Reconnects
ws Unsuccessful Reconnects : number
Defined in src/websocket.ts:236
wsconnected
wsconnected : boolean
Defined in src/websocket.ts:232
wsconnecting
wsconnecting : boolean
Defined in src/websocket.ts:233
Websocket Provider for Yjs. Creates a websocket connection to sync the shared document. The document name is attached to the provided url. I.e. the following example creates a websocket connection to http://localhost:1234/my-document-name
Example