the address of the RPC server.
Optional
opts: ClientOptionsthe options of the client.
Private
apiPrivate
attachmentPrivate
Optional
authOptional
reason: stringPrivate
conditionsPrivate
Optional
idPrivate
keepalivePrivate
keyPrivate
processingPrivate
reconnectPrivate
retryPrivate
rpcReadonly
methods: { Readonly
activatefrom rpc yorkie.v1.YorkieService.ActivateClient
Readonly
I: typeof ActivateClientRequestReadonly
O: typeof ActivateClientResponseReadonly
kind: UnaryReadonly
name: "ActivateClient"Readonly
attachfrom rpc yorkie.v1.YorkieService.AttachDocument
Readonly
I: typeof AttachDocumentRequestReadonly
O: typeof AttachDocumentResponseReadonly
kind: UnaryReadonly
name: "AttachDocument"Readonly
broadcast: { from rpc yorkie.v1.YorkieService.Broadcast
Readonly
I: typeof BroadcastRequestReadonly
O: typeof BroadcastResponseReadonly
kind: UnaryReadonly
name: "Broadcast"Readonly
deactivatefrom rpc yorkie.v1.YorkieService.DeactivateClient
Readonly
I: typeof DeactivateClientRequestReadonly
O: typeof DeactivateClientResponseReadonly
kind: UnaryReadonly
name: "DeactivateClient"Readonly
detachfrom rpc yorkie.v1.YorkieService.DetachDocument
Readonly
I: typeof DetachDocumentRequestReadonly
O: typeof DetachDocumentResponseReadonly
kind: UnaryReadonly
name: "DetachDocument"Readonly
pushfrom rpc yorkie.v1.YorkieService.PushPullChanges
Readonly
I: typeof PushPullChangesRequestReadonly
O: typeof PushPullChangesResponseReadonly
kind: UnaryReadonly
name: "PushPullChanges"Readonly
removefrom rpc yorkie.v1.YorkieService.RemoveDocument
Readonly
I: typeof RemoveDocumentRequestReadonly
O: typeof RemoveDocumentResponseReadonly
kind: UnaryReadonly
name: "RemoveDocument"Readonly
watchfrom rpc yorkie.v1.YorkieService.WatchDocument
Readonly
I: typeof WatchDocumentRequestReadonly
O: typeof WatchDocumentResponseReadonly
kind: ServerStreamingReadonly
name: "WatchDocument"Readonly
typePrivate
setPrivate
statusPrivate
syncPrivate
taskdeactivate
deactivates this client.
If keepalive is true, the client will request deactivation
immediately using fetch
with the keepalive
option enabled. This is
useful for ensuring the deactivation request completes even if the page is
being unloaded, such as in beforeunload
or unload
event listeners.
Private
deactivatedetach
detaches the given document from this client. It tells the
server that this client will no longer synchronize the given document.
To collect garbage things like CRDT tombstones left on the document, all the changes should be applied to other replicas before GC time. For this, if the document is no longer used by this client, it should be detached.
Private
detachPrivate
enqueuegetCondition
returns the condition of this client.
getStatus
returns the status of this client.
Private
handlePrivate
handlePrivate
processPrivate
runPrivate
runPrivate
sync
Client
is a normal client that can communicate with the server. It has documents and sends changes of the documents in local to the server to synchronize with other replicas in remote.