2

How can I get the socket ID on the client side in a clean way? I already use io.socket._raw.id to access the socket ID, but this is more a hack I think. I can't find a function like io.socket.getId() or something similar to get the socket ID.

Martin Cup
  • 2,399
  • 1
  • 21
  • 32

0 Answers0