signalr Questions

1

Solved

I have tried many methods to detect browser close event through jQuery or JavaScript. But, unfortunately, I have not been able to detect the close. The onbeforeunload and onunload methods are also ...
Draft asked 30/4, 2023 at 7:8

4

Is there a way to do this? I have swashbuckle generating content for my other APIs but I don't believe it works for SignalR.
Grefe asked 9/3, 2015 at 17:47

5

I create a realtime connection via SignalR From client(angular 9) and server(asp.net core 3.1) and Authorize hub by JWT Token such as below code : private createConnection() { this.hubConnection...
Sailboat asked 3/6, 2020 at 8:56

1

We have written a Blazer Server app (.NET 7.0) that is hosted on IIS 10 on Windows Server 2019. The app works fine under the latest versions of Chrome or Edge. However, a few of our users use the l...
Falsehood asked 14/3, 2023 at 15:54

4

Solved

I have the same question as this guy: can I run my SignalR hub through the Azure API management service? I cannot seem to configure it in the service: it only allows me to forward HTTP/HTTPS tra...
Achitophel asked 12/6, 2015 at 6:37

2

Solved

I have an ASP.NET MVC application that runs on server A and some web services that run on server B. I have implemented real-time notifications for which I have used SignalR on server A. But now I n...
Rodolphe asked 22/3, 2016 at 17:44

4

I am trying to implement SignalR in an ASP.NET (not Core) and Angular (currently 10) application. Startup.cs is using Owin. Every documentation or example I could find was for either ASP.NET Core o...
Tuttle asked 10/8, 2020 at 15:4

2

Solved

I am working on an ASP.NET Core 3.1 Blazor Server-Side application that has a Blazor component with an EditForm. I want to warn the user that they have unsaved data if they try to navigate off of t...

5

I am a beginner in using Signalr and am checking out some examples. Is it possible to send a message to the client from the server and wait for a return from it? Or is it possible to guarantee tha...
Stalagmite asked 16/1, 2018 at 19:12

3

Solved

I have a REST API (core 2.1) which need to support a SPA, providing restful endpoints and some live-interactive features using SignalR; The Hub/MVC routes are running on the same server, which is ...
Ferial asked 13/10, 2018 at 20:35

4

Solved

This is my Hub code: public class Pusher : Hub, IPusher { readonly IHubContext _hubContext = GlobalHost.ConnectionManager.GetHubContext<Pusher>(); public virtual Task PushToOtherInGroup(d...
Synchrotron asked 8/7, 2013 at 19:32

8

Solved

How can I call SignalR Core Hub method from Controller? I am using ASP.NET Core 2.0 with Microsoft.AspNetCore.SignalR (1.0.0-alpha2-final). I have windows service which communicate with Excel, Sol...
Bathesda asked 24/10, 2017 at 7:31

6

Solved

I'm trying to use SignalR with MVC bundle, but having problem finding out how to include the /signalr/hubs script into the bundle. For now I have to insert the path in between jquery.signalR and my...
Antidepressant asked 19/7, 2012 at 7:43

5

Solved

I have implemente signalR in window service. private IDisposable SignalR { get; set; } public void Configuration(IAppBuilder app) { var hubconfig=new Microsoft.AspNet.SignalR.HubConfiguration()...
Careworn asked 27/11, 2014 at 10:33

3

Solved

I have a small SignalR project that I've started that right now all it does is receives a string and echo it back to all connected users. What I'm wondering is, since SignalR open websockets on my...
Higher asked 21/7, 2015 at 14:55

3

Solved

My code in SignalR hub: public class AlertHub : Hub { public static readonly System.Timers.Timer _Timer = new System.Timers.Timer(); static AlertHub() { _Timer.Interval = 60000; _Timer.Elaps...
Racoon asked 4/3, 2014 at 21:14

4

Solved

I need to get the connection ID of a client. I know you can get it from the client side using $.connection.hub.id. What I need is to get in while in a web service I have which updates records in a ...
Stotinka asked 3/1, 2014 at 16:47

9

Solved

I can get this tutorial to work in a new project, but not in my existing project. My project is an ASP.Net MVC 4 web application with the following attribute in the web.config file: <appSettin...
Oberstone asked 2/7, 2013 at 9:29

2

Solved

I need to detect when users connect and disconnect using signalr. I have these 2 hub methods: public void Say(string message) { Trace.WriteLine(message + " - " + Context.ConnectionId); } public...
Joycelynjoye asked 25/1, 2017 at 14:21

2

Solved

I'm trying to detect when a SignalR Core connection is lost so that I can create a new one or at least warn the user. connection.on('closed', data => { alert('Connection Closed'); }); This s...

1

I want to add chat real-time feature to my Web project. I'm using asp.net SignalR 2.4 to implement that feature. But i struggle to get UserId from bearer token in hub class. I provide token from c...
Heribertoheringer asked 29/4, 2019 at 14:51

2

Solved

Anyone know the AspNetCore SignalR equivalent of this code from AspNet SignalR? Task.Factory.StartNew(() => { //// var clients = Hub.Clients<RealTimeNotificationHub>(); var connection =...
Prejudicial asked 28/9, 2018 at 7:51

3

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 se...
Shulamite asked 15/1, 2019 at 5:18

2

The SignalR Core is generating Hub proxies script, but not adding the "client" methods. (No errors in server or client - only not working) Generated JS from <script src="http://localhost/signal...
Wasserman asked 6/12, 2016 at 9:54

13

I keep getting: warning MSB3026: Could not copy dlls errors. I have several projects in the solution. On build, I also get the error: Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin...

© 2022 - 2024 — McMap. All rights reserved.