Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to Obtain Signalr Connection Id #36

Open
coommark opened this issue Mar 20, 2015 · 1 comment
Open

how to Obtain Signalr Connection Id #36

coommark opened this issue Mar 20, 2015 · 1 comment

Comments

@coommark
Copy link

I have attempted to obtain the signalr connection Id without success.

When I do this : var conn = hub.connection; and console.log(conn); I see the id of the connection in the log, its something like this: id: "235ds-sdre65-sfde3d-sfd4rs" but when I do
var conn = hub.connection.id and log it, its says id is undefined.

How do I obtain it? I can obtain all the other fields of the connection except id and token.

@DeBiese
Copy link
Contributor

DeBiese commented Mar 23, 2015

Can you show this with a complete example? At what time to you try to call the hub.connection.id? It should work. But only if your hub is ready and connected ofcourse...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants