Search code examples
asp.net-coresignalrsubdomainiis-6

How to use SignalR under subdomain of Asp.NET Core application


I am working on a project which has subdomains like:

'example.com', 'app.example.com' and 'admin.example.com'

and iis is acting like each subdomain is like an app. iis snapshot.

I want to use SignalR under the sub domain 'app' but could not achieve. Installed the packages:

"Microsoft.AspNetCore.SignalR.Server": "0.2.0-*"

"Microsoft.AspNetCore.WebSockets": "0.2.0-*"

It worked under 'example.com' but not under 'app.example.com'

Got 404 error while trying to find the src 'signalr/hubs'.

How can I route the signalr to my subdomain 'app'.

Best regards


Solution

  • "Microsoft.AspNetCore.SignalR.Server": "0.2.0-*" is dead. Don't use it. SignalR for Asp.NET Core version is developed here. It's very early though and things keep changing rapidly.