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

Get Connection Id #36

Closed
majidfathi69 opened this issue Jul 12, 2021 · 1 comment
Closed

Get Connection Id #36

majidfathi69 opened this issue Jul 12, 2021 · 1 comment

Comments

@majidfathi69
Copy link

I wrote this code and now I need to find out how to get the connection id from mySignalR object.

mySignalR = SignalR('URL', "Hub",
        hubMethods: ["GetSellsInit", "GetSells"],
        statusChangeCallback: _onStatusChange,
        queryString: "logintoken=xyz",
        hubCallback: _onNewMessage)

some example in javascript:

var connection = $.hubConnection("URL");
var hub = connection.createHubProxy("Hub");
connection.id
@AyonAB
Copy link
Contributor

AyonAB commented Nov 5, 2022

After the successful signalr connection, you can get the connection id with mySignalR.connectionId. Try out the pre release package if you are having any trouble. I will soon push a stable update.

@AyonAB AyonAB closed this as completed Nov 5, 2022
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