btford / btford/angular-socket-io

A way of getting socket in client

Open
#109 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.