angular-socket-io
angular-socket-io copied to clipboard
A way of getting socket in client
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?
Is there an other way to get the client's id ath the client side?
Doesn't seem so...