You need to enable cross-domain settings for the signal in order to call it from other applications.
appBuilder.Map("/signalr", map =>
{
map.UseCors(CorsOptions.AllowAll);
var hubConfiguration = new HubConfiguration()
{
EnableJSONP = true,
EnableDetailedErrors = true,
EnableJavaScriptProxies = true
};
map.RunSignalR(hubConfiguration);
});
This code can be found in the readme.txt file that we get after installing the Nuget package for SignalR. For the cross-domain function, you also need to install the Cores nuget package.
After deploying this application, you can see that some signalR calls fail, and Some succeeds. By default, the number of instances in the Reliable Stateless service is -1. Thus, multiple instances will be created for the service.
signaleR Connection.Start() SingalR API.
.
API Service Fabric , , , , .
1 - . , .