Questions tagged [asp.net-core-signalr]

1

votes
0

answer
282

Views

SignalR works only locally

I have a project using ASP.NET Core with SignalR core. When I test locally on IIS server on Windows it works but when I deploy on Linux server with Kestrel I have an error: can’t establish a connection to the server at was://lalala/chat?id=someid. I used this manual.
Artyom
1

votes
1

answer
374

Views

SignalR Core, error: The 'Sec-WebSocket-Accept' header value 'u1mOHwcpjPm7txGcxCm1jVmOgjo=' is invalid

I'm trying to implement SignalR Core in a .Net core 2.0 Web app, and implement client side in a Xamarin.Android application. I created a fresh .Net core 2.0 Web app solution and imported Microsoft.AspNetCore.SignalR and setup the Startup.cs file like in this sample https://github.com/aspnet/SignalR...
Rasmus Pedersen
1

votes
0

answer
87

Views

Why NServiceBus performance is affected by SignalR connection

I had a web service which has been using NServiceBus message handling between controller and domain logic. For a new functionality, I have to implement signalR webRT communication between clients and server. But there are some performance problems. I thought that, the problems occur from my design d...
golazo
1

votes
2

answer
1k

Views

Integrate Angular 4+ application with ASP.NET Core SignalR

I am trying to integrate Angular 4 + SPA with ASP.NET Core SignalR starting from this tutorial. I have managed to integrate using a simple web app (jquery + signalR client) with ASP.NET Core App, so server-side configuration seems ok. ASP.NET Core Microsoft.AspNetCore.SignalR version 1.0.0-alpha2-fi...
Alexei
1

votes
0

answer
366

Views

asp.net-core-signalr can't stay connected for more than a minute or so

Just upgraded our app service from .net 4.6 to .net core. Part of that migration was to upgrade to the new .net core version of SignalR. Everything was working fine while running locally, but when it was published to an azure app service, the connection doesn't stay connected for more than a minute...
Stephen
1

votes
1

answer
234

Views

Get HubContext from outside of Hub using Aspnetcore.signalr libray (not from Controller)

I am developing SignalR service using AspNetCore.SignalR. Following is my Hub: public class NotificationHub : Microsoft.AspNetCore.SignalR.Hub { public override async Task OnConnectedAsync() { await base.OnConnectedAsync(); } public override async Task OnDisconnectedAsync(Exception exception) { awai...
Sagar
1

votes
1

answer
574

Views

Failed to start the connection: Error: Unable to initialize any of the available transports

I followed code SignalR guide for .NET CORE AngularApp I get below error: Failed to start the connection: Error: Unable to initialize any of the available transports The code is there hosted on Microsoft's Github here Below is code snippet from Startup.cs code: public class Startup { public...
User3250
1

votes
0

answer
273

Views

SignalR: Throwing HubException on server and getting the error message on typescript client

Starting the connection client-side: ngOnInit() { this._gameKey = parseInt(this._route.snapshot.paramMap.get('game-key')); this._hubConnection = new HubConnectionBuilder() .withUrl('http://localhost:5000/match').build(); this._hubConnection.on('Connected', (data) => {this.connected(data)}); ... this...
Arhire Ionut
1

votes
1

answer
523

Views

SignalR Core with Redis Pub\Sub and console application

I am having Asp.Net Core 2.1 with SignalR Core 1.0.1. I have created chat application that is described here: https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-2.1&tabs=visual-studio Also have configured SignalR to use Redis using services.AddSignalR().AddRedis(Configura...
1

votes
1

answer
1.3k

Views

ASP.NET Core SignalR websocket connection limit

I produce load testing of SignalR (ASP.NET Core) application hosted at Windows Server 2016 standard using Microsoft.AspNetCore.SignalR.Client. Dotnet core hosting 2.1.1 installed And i can not create more than 3000 (2950-3050) connections. Already tried recomendations as described here: How to confi...
aleha
1

votes
1

answer
748

Views

Send message from controller Asp.Net Core SignalR

Could anyone share link where describes how use IHubContext in right way? because i just confused what the purpose of my NotificationHub if i can send message directly from controller? public class NotificationHub : Hub { public async Task SendMessage(string user, string message) { await Clients.All...
Rud
1

votes
0

answer
58

Views

Change IIS Express SSL Certificate

I am developing .Net Core 2.1 Web App and a Xamarin Android app that communicate with each other using SignalR. When running the web app on my machine I need to change the app url from localhost to 127.0.0.1 so I can access it from the android emulator. The issue is that when i change the url IIS ex...
Kristaps Koks
1

votes
0

answer
182

Views

SignalR aspNet core .Net WPF Client is not connecting to server in production Environment

I'm using WPF with asp.net core as sever, for client & server communications we have implemented signalR framework. It is connecting seamlessly when I'm running project through Visual studio / development environment. When I take setup for WPF application it throughs below exception shown in screen...
Aravind Koniki
1

votes
0

answer
287

Views

ASP.Net Core SignalR not working with Xamarin iOS client

Based on the info here https://github.com/aspnet/Announcements/issues/305 I was hoping to get my iOS client working with ASP.Net Core SignalR, but still no luck. I get an exception when the client tries to connect to the hub: // Connect to the SignalR hub. string url = $'http://{DataService.HostNa...
BillyMutt
1

votes
0

answer
38

Views

What is default Javascript SignalR Client AuthenticationSchemes?

I have two clients for my SignalR app: Javascript client for web browsers and Android client (Gurgen/SignalR-.net-core-android-client) that use JWT Bearer Authentication. I added this attribute to my SignalR Hub: [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme + ',' + Cooki...
Tareq Nassry
1

votes
0

answer
44

Views

Clients.All, Clients.Caller and Clients.Others throwing TypeLoadException

I have a simple Typed Hub setup through an interface. I can successfully connect to the SignalR Hub. namespace POC.WebSocket { public class ApiResultHub : Hub { public async Task SendMessage(string user, string message) { await Clients.All.ReceiveMessage(user, message); } public override Task OnConn...
Vaibhav Pingle
1

votes
0

answer
309

Views

.Net Core server controlled media streaming

I have to write a web application that can stream audio media to the clients. The hard part is that the server needs to control the streaming, so I can not give a simple mp3 (or something like that) to the client as 'application/octet-stream'. The basic requirements are: Every client can listen to e...
Peter Hurtony
1

votes
0

answer
226

Views

Azure SignalR Service with native Android app?

Is there a way to connect native Android app to Azure SignalR Service with curent java client in ASP.NET Core 2.2 Preview 3? (https://docs.microsoft.com/en-us/aspnet/core/signalr/java-client?view=aspnetcore-2.2)
kosancicivan
1

votes
1

answer
78

Views

How to scale out a SignalR ChannelReader?

I'm using SignalR 1.0.4 and have a hub that returns a ChannelReader created from an observable by an extension. A typescript client (also 1.0.4) is forced to connect using websockets only, and streams data from this channel fine. Now I'm testing scale out using 2 instances of the hub, both using the...
Mark
1

votes
1

answer
196

Views

Adding SignalR to existing IdentityServer4 Authorization

I have an Asp.Net core 2.2 IdentityServer4 application with a working system supporting claims, etc. I'm adding SignalR to it and want to use the [Authenitcation] header and have access to the same claims my controllers have. I've found a couple of articles on integrating SignalR with IdentitySer...
ScottFoster1000
1

votes
0

answer
64

Views

Where are the AspNetCore.SignalR release notes?

We have an issue with frequent disconnects and are using Microsoft.AspNetCore.SignalR in version 1.0.3. There's a version 1.0.4 and 1.1.0 so I thought I'd check the release notes to see if it might be an issue that was fixed. However, I can not for the life of me find any release notes for these p...
enzi
1

votes
1

answer
39

Views

Workaround for lack of ConnectionSlow, Reconnecting and StateChanged events in SignalR Core?

I'm upgrading a project from SignalR to SignalR Core, and ran into the following issue. I don't see a way for the .NET client to quickly detect that it has been disconnected from the server. This happens when the web service recycles its application pool. It takes 90 seconds for the .NET Core client...
Eternal21
1

votes
1

answer
89

Views

Add headers to @aspnet/signalr Javascript client

I'm using @aspnet/signalr Official Javascript client from This npm package I wondering if there is the way to add Header configuration to the client connection header How I build the connection let connection = new signalR.HubConnectionBuilder() .withUrl( 'https://some.signalr-host.com' ) .build();
1

votes
1

answer
35

Views

Is there a way to implement events in SignalR Core Hub?

In my Asp.Net Core application I receive updates from a .Net Client through SignalR Core. With these updates, I try to know the status of a background service that is running on the .Net client. Some examples: 'Timer has been started successfully.' 'Timer has been paused successfully.' 'Timer has be...
Sam
1

votes
0

answer
19

Views

Asp.Net Core Chat SignalR-based rendered inside an Iframe, and called from inside of an Asp.net Web Form based application

I have an Asp.Net Web form based Application, which relies on an Identity Server for authentication. I'm planning to create a Chat to be used as an independent Asp.Net Core Web Application (using SignalR), which would be authenticated in the same way as the Asp.Net Web form based Application (Both u...
Yuri Machado
1

votes
1

answer
816

Views

How to check success of HubConnection.StartAsync in SignalR for ASP.NET Core 2.0?

Using SignalR for ASP.NET Core 2.0, Client side (1.0.0-alpha2-final), C# VS2017. To connect the code is: await hubConnection.StartAsync(); since this is an await for a void how can we test if the client did manage to connect ? In my tests I have a breakpoint on the server side in public override as...
Frank Monroe
1

votes
2

answer
312

Views

Does SignalR or websockets works with ASP.NET CORE 1.0?

I need to implement realtime data sharing push based to my asp.net core 1.0 web application. i.e. If any new data is available I want to push it to all the connected clients/logged in users. I was considering SignalR & websockets for it but SignalR works on .net core 2.0 and websockets works on .net...
Mithun Ganatra
1

votes
1

answer
577

Views

Can we use core SignalR using websocket without sticky session today?

Can we use core SignalR using websocket without sticky session today? If not, when can we expect this to be production ready? Do we have a simple work around today?
Jawahar
1

votes
1

answer
125

Views

How can I bridge AspNetCore SignalR 1.0.0 alpha2 and SignalR 2.2.2

I'm experimenting with ASP.NET Core (targeting the 4.6.1 framework) with SignalR 1.0.0-alpha2-final and Angular 5 to try to rewrite our application using SPA technologies. I have several calculation services written with the .NET 4.6.1 framework, and I have no choice but to use SignalR 2.2.2 to host...
Larry
1

votes
1

answer
1.4k

Views

Integrating SignalR for microservice with API Gateway

I'm designing a microservice system based on .Net core. The architecture system will look like as the following picture. The problem is: There is a requirement which have to integrate SignalR (real-time) for notification I've read about SignalR on Microsoft's website. But I consider that where shoul...
Juong David
1

votes
1

answer
208

Views

Azure Service Bus backplane for Signalr core

is Azure Service Bus backplane available for signalr core. which backplane is available for a signalr core app that is hosted on Azure cloud. thank you.
user8559109
1

votes
2

answer
79

Views

SignalR persist connections for anonymous users

I have a SignalR Chat that is available to anonymous users. I need a way to map the users so that the connections persist on page reload, and if the user has multiple tabs they should get the message displayed on every tab. If I use Context.ConnectionId, every page reload creates a new connection. I...
d1cte
1

votes
1

answer
120

Views

AspNetCore SignalR 1.0.0-rc1-final NTLM/Negotiate authentication with C# managed client

In the ASP.NET version it's extremely simple: hubConnection.Credentials = CredentialCache.DefaultNetworkCredentials; How can I accomplish this in the new AspNetCore C# managed client?
Curdie
1

votes
1

answer
56

Views

Issue on signalR dotnet core

Issue Scenario: SignalR version 1.0.0 RC1 Final DotNet Core 2.0 Tipical: User - Posts - Comments models. Issue: When I send a model through websocket fails silently (no message is send to clients). It works fine if I set to null navigation property: _context.Posts.Add(model); _context.SaveChanges();...
dani herrera
1

votes
1

answer
41

Views

Firing SignalR Core message

I have a SignalR hub, the goal is to monitor the progress of a long running job (several hours) and as it progresses everyone monitoring the progress gets updates. What I'm trying to do is figure out the best way to send a message to a SignalR without being 'connected' to it as a client. I've been...
John Mitchell
1

votes
1

answer
372

Views

SignalR Asp.Net Core Send Async Hanging

So its happened for the second time now. I believe what triggered the error was when I tried to do an update to my MongoDb server but I still don't know why this happens and I'd like to find out. Basically I am sending json string data from a C# script to my front end with Signalr using this comman...
Alex Wenger
1

votes
1

answer
280

Views

Pushing message to groups in SignalR

Just trying to wrap my mind around handling pushing data to some users through SignalR. Say, in a private chat situation, Person A sends a message to Person B. If I'm understanding the concept correctly, I need to create a Group for each user who logged into the system. This way, when the new messag...
Sam
1

votes
1

answer
284

Views

SignalR Javascript Client - Invoke method work but promise didn't work (???)

Currently I'm studying SignalR for ASP.NET Core web project, I use ASP.NET Core as a server for SignalR and web clients use SignalR Javascript Client. I'm making a chat app that will return some message when the client invoke function from the server. Here's my Javascript client function: this.hub.i...
Darick Nguyễn
1

votes
1

answer
205

Views

How to call SignalR Service method from web app service

Let's say, I have an enterprise application runs on Azure Web App Service. Among 100+ pages, I have 3-5 pages needs to be served real-time. to benefit from real-time capabilities of Azure SignalR Service, I want to make clients land on my SignalR application (which runs on RignalR Service). But I c...
Progressive
1

votes
2

answer
0

Views

Signalr Retry Logic .Net Core

We have been facing issues with reconnection in Signalr .Net Core, what are the best practices for reconnecting to signalr- hub? Following seem to be most respected article on reconnecting. But seems outdated, isn't it? Best practice for reconnecting SignalR 2.0 .NET client to server hub
Abhijeet

View additional questions