Questions tagged [signalr]

1

votes
1

answer
3.1k

Views

Connection ID required

I am trying to build a simple chat application using SignalR with ASP.NET Core 2.0. The problem is that when I want to access one of my hub's url (localhost:5000/chat) I receive as a response: Connection ID required with error code 400. I am using auto generated from template authentication (users...
Georgi Stoimenov
1

votes
1

answer
1.1k

Views

SingalR Error during negotiation request

I've got a project with SignalR and AspNet. I'm trying to connect my client (its a cors) and the first request returns 200 code but I'm getting this error in my client side: Error during negotiation request. My SignalR Server side classes: public class Startup1 { public void Configuration(IAppBuilde...
patricia
1

votes
1

answer
51

Views

How we can implement a “Bell Notification” inside asp.net mvc-6 core

I am working on an asp.net core web application, and our system has a lot of functionality to assign items to registered users where i want to notify the users about these items, by implementing a Bell-like notification (which is been used by a lot of social media site), as follow:- now at this stag...
test test
0

votes
1

answer
9

Views

New to SignalR, is there a way to broadcast to others WHILE a user is doing an action, not just when they start and finish?

So what I'm trying to do, and I've made a small example project here, is when a user is editing a cell in a table, the cell disables for everyone else on that page. All good. Here I set it up so that when the user enters a cell, it disables for everyone else, and on blur/exiting the cell, it clears....
James Verdune
1

votes
2

answer
683

Views

SignalR Core 2.2 CORS AllowAnyOrigin() breaking change

To connect via SignalR to an ASP.NET Core 2.1 server from any origin, we had to configure the pipeline as follows: app.UseCors ( builder => builder .AllowAnyHeader () .AllowAnyMethod () .AllowAnyOrigin () .AllowCredentials () ) According to this document, ASP.NET Core 2.2 no longer allows the combin...
Alexandre
1

votes
1

answer
132

Views

ASP.NET Core SignalR acces Hub method from anywhere

If been spending many hours on this problem and I found a lot of different strategies, but none of them worked for me. (This code is just a proof of concept ofcourse.) I have the following setup using Asp.net core 2.1 (on .Net Framwork 4.7.2): I have made a signalr hub which has a method to send a n...
MrEighteen
1

votes
1

answer
37

Views

SignalR methods in WebApi controller not called in specific setup

Well, I have a signalR hub: public class ReportHub : Hub { private static IHubContext hubContext = GlobalHost.ConnectionManager.GetHubContext(); public void SendMessage(string text) { Clients.All.sendMessage(text); } public static void ServerSendMessage(string text) { hubContext.Clients.All.sendMess...
udovichenko
1

votes
2

answer
3.5k

Views

Angular SignalR HubConnection gives 'Protocol error: Unknown transport.'

I have an Owin-selfhosted API running on http://localhost:8090/. I created a signalR hub with the following code: app.UseCors(CorsOptions.AllowAll); //Inside Startup.cs app.MapSignalR(); //Inside Startup.cs //Inside own class file public class SensorHub: Hub { public void Send(string message) { Cons...
G Versluis
1

votes
0

answer
21

Views

Can a self hosted windows service be public for other pcs in lan

i have followed this example and works fine. But i tried to open this user interface from other pc in same network and doesnt work. I change 'http://localhost:8080' to 'http://*:8080' and from the pc that runs this service signalr hub is visible with my IPAddress, PC name or localhost, but with othe...
GomuGomuNoRocket
1

votes
0

answer
87

Views

httpcontext is null for websockets signalr

I enabled websockets transport for my application using signalr 2.2.2. I could see the websockets transport enabled and applied as expected. At the same time, I could see null for Context.Request.GetHttpContext().ApplicationInstance. Here Context is of type HubCallerContext. Since the connection is...
SNithish
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
83

Views

SignalR message from controller to view when event fires

I'm new to SignalR and trying to implement a notification when a particular event fires from an API . What's tried: Hub: public class NotificationHub : Hub { private static IHubContext hubContext = GlobalHost.ConnectionManager.GetHubContext(); public static void Send( string content) { hu...
user2695433
1

votes
0

answer
196

Views

Asp.Net Core Integration with Identity Server 4 Token Server

I'm implementing jwt implicit authentication from Identity Server 4 in a new ASP.NET Core 2.0 Application, but confused on how to get my claims set on the context. services.AddAuthentication(options => { options.DefaultAuthenticateScheme = IdentityServerAuthenticationDefaults.AuthenticationScheme; o...
johnny 5
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
308

Views

Update clients in asp.net core 2.0 using SignalR

I am going through several examples on Asp.net Core WebAPI with SignalR where most of them are demonstrating simple chat application where this is what Hub returns: return Clients.All.InvokeAsync('Send', message); And this is how it gets called in Startup.cs routes.MapHub('chat'); The above example...
Jaidev Khatri
1

votes
0

answer
376

Views

signalR python client

Is there a serviseR (ASP .NET CORE 2.0) client for python? I've found signal library but it's too old, and doesn't working with my signalR server (Include='Microsoft.AspNetCore.SignalR' Version='1.0.0-alpha2-final') because this python library uses '/negotiate' method, which is not used in new ver...
Andrew Witwicki
1

votes
1

answer
785

Views

Multiple SignalR connections in ABP

I have a project that is using ASP.NET Zero template. I have successfully integrated SignalR into my solution and the real-time notification works fine. What I want is adding another hub to my solution or extending the existing SignalR hub to add more to it. In the SignalR AspNetCore Integration doc...
Mohammad Shadmehr
1

votes
0

answer
314

Views

Signalr hubconnection.Start not working

I m using SignalR but I have a problem. There is table called Discussion.when data insert, trigger call API service the codes in API service public async void Triger(int ID) { try { var hubConnection = new HubConnection('http://localhost:57278'); IHubProxy stockTickerHubProxy = hubConnection.Crea...
ömer şahin
1

votes
0

answer
411

Views

Keep SignalR connected in background in Android Oreo

I used a service in my android app that check SignalR connection state every 10 seconds and if was disconnected, try to init SignalR and make it connected. But in Android 8 some limitation added (Read more), that kill background services and also we can't call startService method to start service fr...
1

votes
2

answer
1.6k

Views

Adding user to group in SignalR

When adding a new user to a group in my SignalR Hub, how do I check to see if the user has already been added to that particular group? Do I even need to worry about this? In my SignalR based chat app, there are multiple chat rooms and a user can participate in multiple rooms simultaneously. Every t...
Sam
1

votes
0

answer
255

Views

SignalR and PHP client using PHP's standard socket functions

Does someone know a good example or tutorial or PHP socketclient (using PHP's socket functions) to wait for updates from SignalR server? I would like to connect to socket.bittrex.com to receive updates. $socket = socket_create(AF_INET, SOCK_STREAM, 0) or die('Could not create socket\n'); $result = s...
Marcel Molenaar
1

votes
0

answer
157

Views

SignalR connection not working for all clients

I'm having an issue where my SignalR messages are getting through to some clients but not others. If I open the same application in Chrome Incognito, IE 11, Opera, Regular Chrome it will only connect to signalR in Opera and Regular Chrome. An $mdToast dialog appears in the bottom left corner whenev...
Ian
1

votes
1

answer
113

Views

angularJS with SignalR data how to group table rows

I have found an example. it works fine. and I want to use data for my project. link with full code: https://aspdotnet-vijayprajapati-mca.blogspot.lt/2017/05/sql-server-real-time-update-on-record.html Here html code:                    SqlTableDependencly with SignalR EmpId ENam...
1

votes
0

answer
168

Views

Angular: Live update with SignalR behind the proxy webserver

I am using SignalR in order to update my dashboard page. This page developed by Angular 5 and web Api. For security purpose, My angular application sends it API requests to a small web application that act as a proxy server and change the port to the actual API server. My proxy server is running on...
rezord
1

votes
0

answer
274

Views

Signalr Unexpected Connection Inactivity Timeout

These are the configuration items the signalr server has GlobalHost.Configuration.DisconnectTimeout = new TimeSpan(0, 0, 60); GlobalHost.Configuration.KeepAlive = new TimeSpan(0, 0, 5); There has never been any inactivity in production for more than 3 years with this setup. It is a self hosted signa...
1

votes
1

answer
548

Views

How to connect and communicate with a signalr websocket without installing/using node.js/.net?

How to communicate with a signalr websocket without having to use node.js or other non-Python dependencies? For example, how to connect to the following websocket: https://github.com/ericsomdahl/python-bittrex/issues/57#issuecomment-343772197 Running the code from the above example results in: OSErr...
Greg
1

votes
0

answer
387

Views

Uncaught TypeError: cannot read property 'chatHub' of undefined

I'm trying to create SignalR chat application, but I couldn't resolve this error: Uncaught TypeError: cannot read property 'chatHub' of undefined I have written my code below, please check. ChatHub.cs: using Microsoft.AspNet.SignalR; namespace SignalRMVC.Models { public class ChatHub : Hub { public...
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
1

answer
383

Views

SignalR ASP.NET Core 2 context.Token set but not working

I'm trying to implement jwt token in a signalr logger hub. But somehow I keep getting an Unauthorized response JS let url = '/hub/log?token='+getToken(); let http = new this.$signalR.HttpConnection(url, options); this.connection = new this.$signalR.HubConnection(http); C# ConfigureServices services....
Jan-Fokke
1

votes
0

answer
62

Views

Asp.Net SignalR second tab does not fire onConnected event

I just created a sample project with signalR. I am just trying to test managing multiple connection. Everything works as expected when I open the first browser and load the page. It is going to fire the OnConnected event on the hub. But when I open another browser or different tab and load the page,...
ali
1

votes
0

answer
242

Views

How to deploy Owin Self Hosted Signalr Service to production

I am trying to publish Owin Self Hosted Signalr Service(using TopShelf) to production server but it doesn't seem that clients can connect to the server after it's published. The settings and codes are pretty much the same as what you can find in the internet. Startup.cs app.Map('/service', map => {...
See hyung Lee
1

votes
1

answer
38

Views

angularjs webapi signalR chatbox like bookmyshow

i need a live chat box for my application. i should be used for the customers. and it should contain auto reply for some predefined questions. i am using angularjs and asp.net webapi. please help me out.
kumar
1

votes
0

answer
346

Views

Using Asp.net MVC 5 with RabbitMQ and SignalR

I have an asp.net MVC 5 application. Now I want to have a new feature allow me to receive GPS signal from devices and update devices real time in web client side. My plan is to use RabbitMQ to handle message queue and SignalR to notify clients for postion update My code in Rabbit consumer console ap...
Zappa
1

votes
1

answer
175

Views

WebRTC: ICE, STUN and TURN, but can't I just use my SignalR.NET connection?

I'm currently developing a conferencing video web application. I decided to go the WebRTC route, but it is still a bit unclear to me how to use it properly. My application is made in ASP.NET MVC and I also added SignalR for chat/notification functionality. I need to make a live connection between th...
ikwillem
1

votes
0

answer
83

Views

SignalR : Failed to load resource: net::ERR_CONNECTION_REFUSED

I When my client system done format, i got signalR Error like 'Failed to load resource: net::ERR_CONNECTION_REFUSED'.. Hub not created. getting empty. localhost/8080/hubs not generated. I tried few ways 1) disable windows firewall 2) Window 7 OS and Service pack 1 /Dot net framework 4.5 installed 3...
Angappan.S
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
0

answer
182

Views

ASP.NET SignalR dependency.OnChange not call On Sql Data change

This is my code of SignalR with SQL. The Issue is dependency.OnChange is not called on update data in SQL. I have also set to my database ALTER DATABASE Your_DB_Name SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE ; I have tried with SQL 2012,2014 and 2016 Version. In Sql 2016 its sometimes called but no...
Vikas Lalkiya
1

votes
0

answer
339

Views

Join sqldependency and SignalR with asp.net core

How can I Join sqldependency and SignalR with asp.net core to get a notification if there is any change in data in the database?
saif amer
1

votes
1

answer
106

Views

Can I use the old SignalR package with Asp.Net Core if I target the full .Net framework?

I am writing an Asp.Net Core app using the full .Net framework. I would like to add SignalR support, but I see that SignalR for Asp.Net Core is not yet production ready. Is it possible to use the old SignalR package in Asp.Net Core when I target the full .Net Framework?

View additional questions