-
Notifications
You must be signed in to change notification settings - Fork 446
Getting the URL and IP address of the client connection #1114
Comments
For the IP address, you can use the For URL, do you mean the URL on the server that the client requested? The Client doesn't have a "URL" associated with it because it initiated the connection. The server URL is also available via the As for docs, there's nothing right now. The code and GitHub issues are the documentation :). |
#944 added better support for getting Client IP data, and the rest is all available off the |
Hi guys, I still don't know how to get the url client called the hub. Is there any way to get this information? All I have is the hub path or client IP. |
You want to know the URL of the Hub from within the hub? This isn't something we expose since there are numerous HTTP requests to different URLs as part of a SignalR connection. |
What do you mean by "caller URL"? There is no URL for the caller, only an IP address. Can you describe what you want to use this information for? That would help me understand your scenario better. |
I see. That's not something we plan to support directly in ASP.NET Core SignalR since there's no guarantee the client is on a page at all. You should be able to access the HttpContext through |
How you get the URL and IP address of the client connection?
Also, is there any form of documentation on the new core version of SignalR? That I could consult instead of opening issues on your Github?
The text was updated successfully, but these errors were encountered: