socket.io-website icon indicating copy to clipboard operation
socket.io-website copied to clipboard

Best way to tell two users apart?

Open gillerby opened this issue 4 years ago • 0 comments

e.g., User A connects to the page, then due to poor internet connection disconnects, then reconnects.

Supposing socket.io's reconnect feature fails, how can I check whether this user is the same as user A?

IP is not a reliable method, since on top two users in the same house can have the same IP and this wouldn't allow to differentiate them.

The socket.id seems to change when you reload the page for example, so for reconnection doesn't seem ideal.

gillerby avatar Jul 24 '21 22:07 gillerby