Private
WebPrivate
ackedPrivate
authCurrent client token.
Private
connectionPrivate
docPrivate
docPrivate
heartbeatPrivate
indexedDBProviderPrivate
isWhether we are currently in the process of connecting.
Private
listenersPrivate
localPrivate
receivedOlder versions of the Y-Sweet server did not support the sync message, and would ignore it. This may lead to the client thinking the server is offline, when really it just doesn't know how to return a heartbeat.
Eventually, we will build protocol version negotiation into the handshake. Until then, we use a simple approach: until we receive the first sync message back, we assume the server is an older version for the purpose of the heartbeat logic.
Private
reconnectPrivate
retriesConnection status.
Private
websocketWhether the document has local changes.
Whether the provider should attempt to connect.
use provider.status !== 'offline' instead, or call provider.connect()
/ provider.disconnect()
to set.
Whether the document is synced. (For compatibility with y-websocket.)
use provider.status === 'connected' instead.
Whether the underlying websocket is connected.
use provider.status === 'connected' || provider.status === 'handshaking' instead.
Whether the underlying websocket is connecting.
use provider.status === 'connecting' instead.
Private
_onPrivate
attemptPrivate
bindPrivate
broadcastPrivate
checkPrivate
clearPrivate
clearPrivate
ensurePrivate
handlePrivate
incrementPrivate
offlinePrivate
onlinePrivate
queryPrivate
receivePrivate
receivePrivate
resetPrivate
sendPrivate
setPrivate
setPrivate
syncPrivate
updatePrivate
updatePrivate
updatePrivate
websocketPrivate
websocketPrivate
websocket
Awareness protocol instance.