TinyBase logoTinyBase β

onClientId

The onClientId method is called when a client connects to, or disconnects from, the server.

onClientId(
  pathId: string,
  clientId: string,
  addedOrRemoved: IdAddedOrRemoved,
): void
TypeDescription
pathIdstring
clientIdstring
addedOrRemovedIdAddedOrRemoved
returnsvoid

This has no return value.

Since

v5.4.0