signalR hubs on multiple servers cannot communicate
I'm working here as an example: https://docs.microsoft.com/en-us/aspnet/core/signalr/scale?view=aspnetcore-2.2
communication is provided on a single server. redis connection pub / sub is working properly
I want to communicate on the hubs in the same projects on multiple servers
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
var signalR = services.AddSignalR();
signalR.AddStackExchangeRedis(options =>
{
options.Configuration.ChannelPrefix = "ChannelName";
options.Configuration.EndPoints.Add("127.0.0.1", 6379);
options.Configuration.ClientName = "ClientNameSignalR";
options.Configuration.AllowAdmin = true;
});
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseStaticFiles();
app.UseSignalR(config =>
{
config.MapHub<MessageHub>("/message");
});
app.UseMvc();
}