angular-socket-io icon indicating copy to clipboard operation
angular-socket-io copied to clipboard

A way of getting socket in client

Open windht opened this issue 10 years ago • 2 comments

Is there any way to get socket id in a more elegant way? I need to generate qr codes with socket id.

Currently I found a way using

socket.id=io.managers[Object.keys(io.managers)[0]].engine.id;

Which is a long way to get it. Do you mind add an api directly to get it?

windht avatar May 06 '15 08:05 windht

Is there an other way to get the client's id ath the client side?

christianmalek avatar Dec 20 '15 18:12 christianmalek

Doesn't seem so...

christianmalek avatar Jan 03 '16 18:01 christianmalek