On the server, how can I remove a specific client?
For example, if I try to enter from another browser, I want to delete it (close the connection) for the old browser.
Thanks.
On the server, how can I remove a specific client?
For example, if I try to enter from another browser, I want to delete it (close the connection) for the old browser.
Thanks.
Hi @rscata,
From the server-side, you can call client.close()
. This will force the connection with that client to be closed.
You can access the list of clients through this.clients
in the room handler.
Docs: