Last post Jul 31, 2018 02:15 PM by bruce (sqlwork.com)
Jul 31, 2018 10:56 AM|komBAS|LINK
I am using SignalR within an ASP.NET Core 2.1 MVC application which works great in general, but I have some questions regarding Hub functionality.
User / Connection Mapping:
The SignalR ASP.NET documentation seems to be outdated in this cases or I haven't found the related ASP.NET Core documentation yet.
The ConnectionMapping class in this example seems to not work anymore with ASP.NET Core, as in the Client.Send function now a readonly list is expected.
await Clients.Clients(_connections.GetConnections(Context.User.Identity.Name)).SendAsync("Result", jsonResult);
And what was or is the proper way to get the connection from the ConnectionMapping class, when I use
string name = Context.User.Identity.Name;
OnConnected, OnDisconneted, (Reconnect):
A OnReconnected function does not exist anymore in ASP.NET Core, is that right? What is the reason for that or what was the reason in ASP.NET for the OnReconnect function?
Jul 31, 2018 02:15 PM|bruce (sqlwork.com)|LINK