Questions tagged [signalr.client]

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
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
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
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
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
263

Views

SignalR dotnet core MVC Unit testing

and sorry for the confusing title! so, i am developing a 'lobby' where users come in, and other users can see when somebody logs in to the lobby. there can be many lobbies, but only when a user log in to the same lobby, they will show up. the solution and deployment works fine, my problem is (as the...
1

votes
1

answer
560

Views

SignalR 2 StartAsync never returns

In the following part of a class, StartAsync never returns. Any ideas why? The server appears to be working fine, and works with Javascript clients. SignalR client version is v1.0.0-rc1-final public HubUtil(string baseUrl) //string clientId { connection = new HubConnectionBuilder() .AddJsonProtoc...
Paul
1

votes
2

answer
272

Views

SignalR Clients.All.function_name(); not working

Forgive my bad english. I have a project that contains signalR and JavaScript code. But the controller side called Clients.All.function_name (); not working. My hub class: public class yenile : Hub { public void sayfaYenile() { Clients.All.syenile(); } } My javascript code: var sayfayenile = $.co...
aynurk
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
0

answer
186

Views

ASP.NET MVC jquery 401 Unauthorized error with ASP authentication

ASP.NET MVC jquery 401 Unauthorized error with ASP authentication Hey, iam making fancy chat web app but i had 'little problem' with client reconnection after server is restarted. So i tried to update NuGet packages: Microsft.ASpNet.Signalr Microsoft.AspNet.SignalR.Core Microsoft.AspNet.SignalR.JS M...
Basyras
1

votes
0

answer
57

Views

JIT SignalR Hub Sending and Receiving

Up till now for the past 3 months, I still have 0 clue how SignalR works at the JIT (Just-in-time) level. I'm trying to build a Hub that sends data to the client just in time, and the client will then receive the data and work along with it. EDIT: Incase you have no idea what I mean by JIT Sending a...
Nicholas
1

votes
0

answer
65

Views

Multiple .NET Clients SignalR from different machines

I have a SignalR Hub inside an ASP.NET MVC project deployed on a IIS. I have a WinForms Application running on the same server (App1) using 'SignalR .NET Client'. On the client side, I have another WinForms application (App2) that connects to the same hub (With 'SignalR .NET Client) using a local n...
JoakDA
1

votes
0

answer
60

Views

SignalR .NET Client throw error during connection start

I face the next problem. I try to connect to SignalR server. I create HubConnection instance and the start connection. That is successfully. But when I create proxy hub for that connection I get exception. SignalR version 2.2.0 Code example: hubConnection = new HubConnection(inputDataContract.rootU...
Craig Bowen
1

votes
0

answer
122

Views

How to pass data between client and server using SignalR?

I have developed a SignalR hub class to pass data through client and server. When Reservation controller Hit I had called ReservationHub.NotifyCurrentResertiovationToAllClients(); method and it worked fine but it doesn't effect in 'Driver view' through pickup partial view. Below mentioned my code. H...
prag
1

votes
0

answer
21

Views

angular + SignalR version is not defined on --prod build

I have an angular app where we print some info to the console for some dependency versions. I added signalr client recently and am doing: import { VERSION as SignalRVersion } from '@aspnet/signalr'; ng version Node: 8.11.3 OS: win32 x64 Angular: 7.2.0 ... animations, common, compiler, compiler-cli,...
John S
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
1

answer
48

Views

Ignore SSL errors with signalR Core Client

I'm making an application that involves a website on localhost as a user interface with Asp.net Core and SignalR Core. My problem is that I get an authentication exception when starting the connection. I know this happens because I haven't ran dotnet dev-certs https --trust. But I can't expect an av...
GoodOldJack12
1

votes
1

answer
3.9k

Views

When to use start and stop from SignalR?

I've a MVC web application which has an Upload page to upload a file to the server and process the file. Because the processing can take some time (10 to 30 minutes) I use a progressbar to display the % complete. On this page I've the following code to initialize SignalR: // Define functions to faci...
Stef Heyenrath
1

votes
1

answer
1.8k

Views

SignalR and Reactive combo

I found this little gem about how to get SignalR and Rx to play nicely: Rx and Reactive Tutorial However as you might have noticed this only works when going from server -> client. Does anyone know how to go the other way around? I want my framework to be a bit more 'message' based like NServiceBus...
Alwyn
1

votes
1

answer
281

Views

Should we build our SignalR solution into a self hosted app or continue to use it directly within our MVC app?

We've currently got our SignalR 2.x Hub built directly into our MVC Web application. It basically works and now are thinking towards performance and scalability. In terms of performance and scalability, is it better to have our SignalR hub be self hosted in it's own app than be buit into the MVC a...
JohnB
1

votes
1

answer
1.3k

Views

SignalR .NET client: subsequent method Invoke with same connection opened

I have a .NET client app, connected to a SignalR Hub hosted with a .net mvc5 webapp. The main routine of the client app does: int num1 = _myService.GetSomeHubMethod(); int num2 = _myService.GetSomeOtherHubMethod(); ... where _myService is an instance of the class: public class MyService { ... privat...
Alessandro
1

votes
1

answer
268

Views

How to display scheduled event to the clients using SignalR background continuation process?

I have list of events in the database. Events have the following properties, Message, UserId, StartDate, EndDate, StartTime, EndTime. My requirement is to alert the user by displaying the event before 15 minutes on the website. I am implementing this functionality by using SignalR concepts. This Sig...
sridharnetha
1

votes
1

answer
313

Views

SignalR client C# Windows Application using JavaScript (Without using any c# code)

I want to make an client Windows Application using java script by make my Windows Application as webBrowser1 (same idea of PhoneGap). I write html page that contains SignalR javascript code with necessary src. This is the code in Windows Application: webBrowser1.Url = new Uri(@'D:\Signal.html');...
Riyad Khalifeh
1

votes
1

answer
1.2k

Views

SignalR self-host windows form - UI Interaction Between Hub and GUI

Hi I have created 2 winform apps, one to act as a server (self host) and one to act as a client. My server app has a button to stop and start the server / hub and a text box to display logging information. I can successfully send messages between the 2 applications, that is to say client receiving m...
user_1010101
1

votes
1

answer
1k

Views

SignalR Client Connection has been not established

I created a SignalR Selfhosted application but can not access via browsers or Windows Phone (which is my client). I followed several tutorials and they pretty much say the same thing, I believe that the error is on my network configuration also notice that when you run the project, the IIS does not...
Luiz Negrini
1

votes
1

answer
667

Views

SignalR, Server side methods can be called, but client side methods cannot, only in production environment

I have successfully developed an hub for my newsletter sending function in a .net website. The server procedure is called by the hub, then during the sending routine, I send a client methods to report the progress status, and finally another client method to report ending of the routine. My dev envi...
Cristian Barzaghi
1

votes
3

answer
1.1k

Views

signalR client hangs on wait()

SignalR client hangs on wait(); Here is my code Proxy.Invoke('IO_Table_Game_Status', getTableGameStateJsonReq).ContinueWith((responseJson) => { string tablestatusResp = responseJson.Result; }).Wait(); Here I need to get the Json value in tablestatusResp. But it's showing empty value.
1

votes
1

answer
883

Views

Signalr response from client

How do I get the result into my action from my subscribed client? I have setup hub in my mvc application with signalr with purpose to validate clients between multiple clients providers. which I am accessing in my controller as: IHubContext _hubContext = GlobalHost.ConnectionManager.GetHubContext();...
cpoDesign
1

votes
2

answer
2.8k

Views

How to call multiple hub method from SignalR

I am using SignalR and MVC. I have developed an admin page where I can send notifications. There is a menu with an icon to display the unread notification. If I click on the count a notification panel will display with the latest 5 notifications. There is also a 'View All' link which opens a new p...
jubi
1

votes
1

answer
1.2k

Views

Setting up Signal R in Android: Crash/Hung Issue

I followed THIS tutorial to set up a .NET Backend for my Android app to implement Signal R. I set up a SignalR Self-Hosted backend. Here's my Backend Code in a Console Project: namespace SignalRSelfHost { class Program { static void Main(string[] args) { // This will *ONLY* bind to localhost, if yo...
Dinuka
1

votes
1

answer
393

Views

Troubleshooting SignalR Serialization

I have the following code: try { _hubConnection = new HubConnection(_baseUrl); _hubConnection.CookieContainer = new CookieContainer(); _hubConnection.CookieContainer.Add(_cookie); _hubProxy = _hubConnection.CreateHubProxy('appHub'); _hubConnection.Start().Wait(); } catch (Exception e) { Elmah.Error...
RobVious
1

votes
1

answer
522

Views

SignlaR authentication - handle unauthorized

So after following this article, http://www.asp.net/signalr/overview/security/hub-authorization I could not find anything about how to inform somehow the user that he is not authorized. In the System.Web.Mvc.AuthorizeAttribute you can have protected override void HandleUnauthorizedRequest(Authoriz...
Mihai Dabiste
1

votes
2

answer
1.6k

Views

SignalR - Calling a WPF Client method from a Self-Hosted Console Server

I followed this tutorial and managed to set up a Client -> Server and Server -> Client realtime communication demo. However, when trying to recreate the same scenario in a WPF project (instead of a Console project), I can't seem to call the WPF Project's method from the SignalR Hub. NOTE: The WPF Pr...
Dinuka
1

votes
2

answer
536

Views

signalr on function not being called

I am using signalR client java for an android application. The following is the code i am trying as of now: conn = new HubConnection('http://example.com/'); hubProxy = conn.createHubProxy('android'); hubProxy.on('request', new SubscriptionHandler() { @Override public void run() { testFunction(); }...
Neville Nazerane
1

votes
1

answer
454

Views

Connect a .NET SignalR client (Windows XP/.NET framework 4.0) to a signalR v2 server

Can I connect a .NET SignalR C# client (Windows XP/.NET framework 4.0) to a signalR v2 server (ASP.NET, SignalR hosted on Mono)? I know I won't be able to use Websockets from Windows XP but if this setup is possible I will benefit by being able to connect newer Windows clients (Windwos 8+) using We...
retset
1

votes
1

answer
738

Views

Signalr scaleout with sql server

We need to implement the push notification using Signalr. We have two web servers (i.e., production and the backup server configured in cluster). The client will be connected to the backup server only if the production server is down. We have production database and backup database which are synchro...
Vijay VSTO
1

votes
1

answer
419

Views

SignalR and MVC 5 partial views

Hey guys I have the following issue with Asp SignalR. I want to have a chat with Admins and Users. I have 1 View with two divs (! for the Admin and 1 for the users), which I show or hide by checking the user. So far so good, everything works ! Both the admins and users get the necessary divs and can...
Angel Deykov
1

votes
1

answer
464

Views

Group Chat Signal R with Web API

Below i have three table which is used for GroupChat,Firstly I am creating the group its all data wil be inserted into GroupTable,then on success of groupCreation i am calling insertConnectionId function which will call the MapGroupConnectionId on backend which generate the SignalR connection ID and...
Nikil
1

votes
1

answer
615

Views

SignalR API in angular 2 client is not receiving notification

I have signalr server running. That keeps sending updated information. I have following code in index.html within tag $.connection.hub.url = 'http://localhost:8080/signalr'; // Declare a proxy to reference the hub. var chat = $.connection.myHub; // Create a function that the hub can call to broadca...
Paperless

View additional questions