Click here to Skip to main content
15,891,567 members
Everything / SignalR

SignalR

SignalR

Great Reads

by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
by Altaf Ansari
Integration of SignalR with ASP.NET C# WebForm Application in Real-Time Chat Application
by Mustafa Kok
SignalR server and client applications for demonstrating common scenarios like connecting, disconnecting, joining and leaving groups, sending messages to all clients, to specific or group of clients
by dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query

Latest Articles

by Zoltán Zörgő
One application, multiple SignalR endpoints with different hubs
by Pusparag Subudhi
Extending SignalR to push EF change notification to connected client applications
by Pusparag Subudhi
A WPF application can be made more interactive and deployment friendly by using SignalR to our advantage. This is Part 1 showing how SignalR can be implemented in a WPF application for two-way communication and synchronization.

All Articles

Sort by Updated

SignalR 

21 Mar 2018 by #realJSOP
Right off hand, the best way I can think of is to maybe update an activity table in the database every time the user does something that submits a GET or POST request to the site. And maybe have a web service that pushes activity to the page used for monitoring this activity.
29 May 2019 by 855
I created a signalr service on Azure. I'm trying to connect it from C# client. Below is the code sample i found, something i don't understand is when Azure SignalR already used(app.UseAzureSignalR), why map it to a local Hub(Chat)? will the Chat.cs be hosted on azure? startup.cs...
13 Dec 2013 by Abhay Pati Tripathi
I have a social networking website developed in ASP.NET C#. I am using SignalR 2.0 to live update posts of users to all the online users on my website.This website is deployed at to different servers, for desktop users with URL www.xyz.com and for mobile users with URL m.xyz.com.The live...
28 Mar 2014 by Abhinav S
To help you get started with SignalR, here are some links -Introduction to SignalR[^]Persistent long-running connections with SignalR[^]http://channel9.msdn.com/Events/Build/2013/3-502[^]
28 Jun 2014 by Abhinav S
Try the following links -Asp.Net SignalR Chat Room[^]Chat Application with SignalR and ASP.net MVC 4[^]ASP.NET SignalR: Building a Simple Real-Time Chat Application[^]
2 May 2015 by Abhinav S
These links may help you -How to Push Data from Server to Client Using SignalR[^]Using SignalR in WinForms and WPF[^]Implementing SignalR in Desktop Applications[^]
23 Nov 2015 by Abhinav S
Try these links -ASP.NET SignalR Basis Step by Step (Part 1)[^]Asp.Net SignalR Chat Room[^]
8 Dec 2015 by Abhinav S
SignalR can help you group / individual chats easily.Some examples -Asp.Net SignalR Chat Room[^]Chat Application using ASP.NET SignalR[^]
7 Jul 2015 by abhishek_singh
You can use below code at client sidevar NotificationConnection;$(document).ready(function () { try { NotificationConnection = $.connection.Notification; NotificationConnection.client.UpdateUnreadCountClient = function (objCount) { } ...
7 Dec 2016 by Afzaal Ahmad Zeeshan
Push notifications are specific to your web development framework. Because it is the server maintaining an open port for pushing the notification to client. On simple web interface, ASP.NET SignalR is enough and you can use JavaScript to handle new messages. What you need is already solved...
28 Aug 2019 by Afzaal Ahmad Zeeshan
Quote: file editing is done using a shared folder on server. but which is a security risk. It will be a security risk as long your users can edit the files anonymously. You must try requiring them to login before they can access the resources and suddenly this will be a beautiful feature in your...
24 Apr 2018 by aida1986
Hi , I have actionResult that calculate a long pairoll process , and i use signal R to send progress messages from my controller to progress popup at each step . in one of step i have to display confirm popup if it done the program continue . How i can display popup confirmation in my...
18 Feb 2015 by Ajeet 75
Demo to show how to use HubName and HubMethodName attributes in SignalR
16 Dec 2013 by Albert Holguin
Your question is too general... there's a huge number of signals that would fit into that spectral mask. Post more specific questions once you get started.So far what you know (from the picture): 0. Signal must be centered at 21MHz (common IF frequency) 1. 3dB bandwidth must be...
27 May 2016 by Aless Alessio
Reat time Spreadsheet, updating and retrieving data through a Web Service. Using SQL Server DB.If two or more users are working on the same spreadsheet, they can see what the other users are doing. Mouse pointing is highlighted by filling the cell with diagonal stripes, while data saved is highlight
19 Nov 2013 by Alexanbu
try this link,.it may be helpful for youhttp://www.dotnetcurry.com/ShowArticle.aspx?ID=721[^]
20 Dec 2017 by Altaf Ansari
Integration of SignalR with ASP.NET C# WebForm Application in Real-Time Chat Application
2 Jan 2018 by Altaf Ansari
Integration of SignalR with ASP.NET C# WebForm Application in Real-Time Chat Application
18 Sep 2018 by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
7 Jul 2013 by Amir Jalilifard
As you can see in Facebook's notification system,When an specified change related with your activities happens,Facebook notifies it to you. The important issue is that if we want to use SignalR to send notifications,we have 2 choices:Using the Client side to call a server method who...
26 Jul 2021 by amsga
Hi All, I am trying to provide the same results from both an existing Web API Controller as well as a new SignalR Hub. I am trying as much as possible not to duplicate the same code in both the Hub and Web API Controller. Any advice or links to...
17 Aug 2015 by Andile.M
I am looking to add push notifications which will push status messages to client browser only when specific functions are called within a button's click event. The client javascript methods which will accept signalr sent messages are located in PageA.aspx which looks like this.
22 Sep 2013 by Andreas Gieriet
Do you have a text book or any scripts from your lecture?Lookup the terms there first, then understand the context of the formula, ask your teacher if you have any unclear items. Check the internet for floating point standards, e.g....
15 Jul 2015 by Andy Lanng
It's only the first char that changes to lowercase:var chat = $.connection.auctionhub;$(function () { $.connection.hub.start().done(function () { chat.server.auctionBid( Lot_Id, InputAmt, vendorid, ...
22 Jul 2015 by Andy Lanng
Hi,I have several custom web form controls that use SignalR (for format checks, username availability but mostly for the notifications). Up until now, I have taken the shortcut of just creating a unique name connection for each control.Does this actually create several connections to...
24 Jul 2015 by Andy Lanng
Hi,I am getting so bogged down with this one:I need to perform server side paging with this kendo grid control but every example i've see is MVC >_I'm pretty sure I need to use the parameter map? or maybe add a function to my read method?So here is my grid...
13 Aug 2015 by Andy Lanng
Hi,Sorry if my terminology fails me, here. I pretty sure it's the reason I can't find an answer (or didn't recognize a valid answer when I had fount it)I am writing a web based application using SignalR. There will be many (around 350) operators using the system and I need to...
1 Sep 2015 by Andy Lanng
Hi,I am moving my code into AngularJs. i use SignalR to "lock" records in my kendo table. usually the server pushes notification to the clients but on startup I need it to check for any existing locks. I used to do this within the $connection.start().done(function(){}); but now that I am...
6 May 2018 by Andy07
I want to make more than one count down timers. I use signalr for send my count down timer value to client. When I create one timer, its normal but when the second timer or more than one timers, the tick for count down run very fast. Please help me. What I have tried: My create timer function:...
11 Mar 2016 by Anil Ghildiyal
Hello all, I am using sql dependency to get notifications from sql server, also using signalR for sending notifications to all active clients. I have already achieved the results as expected but now I need to use a complex select query instead of a simple statement.What I have...
13 Nov 2019 by Anil K. Choudhary
Hey, There are multiple ways to add alerts through code please use below ARM Template. ARM Templates { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "alertName": { ...
19 Nov 2013 by Anish Jain
Hi Selvakumar Gurusamy, Instead of using session you can use database where you can store Context.ConnectionId for maintaing one to one mapping between client and server along with your data.
6 Mar 2015 by Antony Gino
Server side push notification using SignalR and SQL
6 Jul 2017 by AnvilRanger
There is a comment/question area at the end of the article. That is where you need to ask a question about a specific article. The odds of the author seeing this 4 years after the article was published is very slim.
11 Aug 2018 by Arsenije Arsenijevic
I know the question is old, but I see it's not answered, just referenced to a working example. You're creating new SqlDependency objects on each call of the GetAllUsers method (which I presume is not called just once) and not stopping the old-ones. This results in multiple SqlDependency objects...
5 Dec 2013 by Arslan Elahi
My Scenerio is that i need a SignalR self Hosted WCF Service that response and sends message to all connected users that came from Winform or WPF.I have tried alot as follows:I have Created WCF service with SignalR Self Hosting code as below which contains 3 Classes and 1...
9 Dec 2013 by Arslan Elahi
Hi guys,i am new in signalR , i have tried and learn from different web sites like github and etc etcBut i couldn't find the solution for my problem.... and now i am getting confused...My problem is:I have developed a Chat app in Winform with Web Services and Centralized Database...
26 Aug 2014 by Artem Smirnov
Monitoring long operation progress via SignalR
26 Oct 2014 by Atinesh
In my building an Auction website which has an area, Where I need to implement a global timer (say for 10secs) for each products which are available for live biding. Whenever a user clicks the button "Submit" the timer must get reset and whenever the timer get expired then the last user that has...
18 Aug 2015 by Bharath K A
This is a HTML5 WebSocket service that streams live, real-time data to browser grid control. This service is capable of automatically computing math expressions on the fly (dynamically at runtime)
13 Oct 2015 by braim800
This tip shows how SignalR can be used to show Trace messages in real-time fashion in the browser to trace and debug a Single Page Application.
3 Oct 2014 by BucketheadBrain
Use hubs dude!Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) RouteTable.Routes.MapHubs() End SubPublic Class Notifier Public Sub Notify(message As String) Dim context = GlobalHost.ConnectionManager.GetHubContext(Of...
22 Jan 2016 by C Grant Anderson
Hi,I think a better approach would be to:1. Put the website "ping" code into a service that updates a database table.2. In the dashboard just retrieve the table status and display it.3. Put a history of the pings into another table so the dashboard can drill down into it.This...
30 Jun 2023 by Cameron van Rooyen
Question How do I create the relationship between the support team member and partner user in my chatHub and then save the messages that they have sent to one another in my SQL database. Note, I am using ASP.NET identity framework for my user...
12 Mar 2015 by chikusuthar
In my Web Application i used normal SignalR Library for push notification. So now i want to implement in external winform Project which will get push notification form Web Application and vice-versa.For Above mentioned query, i made External Console HUB to connect Web app to Win App, its...
8 Mar 2014 by CHill60
Here are some resources to get you started with Cookieshttp://msdn.microsoft.com/en-us/library/78c837bd(v=vs.100).aspx[^]http://msdn.microsoft.com/en-us/library/aa289495(v=vs.71).aspx[^]and here in CodeProject Cookies in ASP.NET[^]However, I suspect you might want to store a...
3 Jul 2017 by Christian Del Bianco
SqlTableDependency is a component used to receive database notifications containing the record values inserted, deleted or update on a database table.
22 Jan 2021 by Christian Graus
Clearly you need to write the getconnectionid method, in order to take a value on your server, and share it with clients. Are you trying to create a group chat or connection? I am not sure you can just share an id and add someone to a session?
18 Apr 2016 by Cindy Potvin
What is SignalR and why should I use it?
24 Nov 2015 by coder771
I'm using mvc, i have a dashboard for which i have used charthelper and bootstrap admin chart. Now i want to update the data on database change. For which i'm trying to use signal R. BeforeI used repository to get data from database. So had services folder which had methods for...
16 May 2019 by Codes DeCodes
I am using signalR for notification i.e. when record is inserted in table, I have to inform user in my app as new notification. My code goes like this: I global.asax file in Application_start(): SqlDependency.Start(@"data source=DESKTOP-591MN5Q\SQLEXPRESS01;initial...
16 May 2019 by Codes DeCodes
I found the solution. Just in case if this solution will help someone else in future. No db owner existed so this issue was caused. I changes db owner and now every thing is working as required.
3 Oct 2014 by CSharpNewbie 2
I Am new to WebServices, so I started to learn about them by creating a project. My idea was to create a REST based WCF service with JSON which is consumed by a Windows Application. This Windows application Post's data to the service and the service stores them in DB. Now, I thought, I will add...
13 Jun 2014 by DamithSL
check below linkshttp://sylvester-lee.blogspot.com/2014/03/aspnet-signalr.html[^]ASP.NET MVC, SignalR, and Knockout based real time UI syncing - For co-working UIs and continuous...
7 Nov 2014 by DamithSL
It is not clear the format of received json data from the question, check below links Convert JSON array to an HTML table in jQuery[^]Without doing all these json to html table by coding, you can use JqGrid[^] or Dynatable [^]
7 Nov 2014 by DamithSL
check How to install SignalR when you don't have .net 4.5 using nuget package manger console[^]
12 Apr 2017 by Dave Kreskowiak
It's not possible for anyone to answer this question. Only you can. We know nothing about your code, how efficient it is, it's actual load at any one time, ... nothing. This is where you spin a virtual machine, install your server on it, and build some load tests and see what it can do. The...
13 Apr 2021 by Dave Kreskowiak
That's the nice part about SignalR. It's completely environment agnostic. It doesn't care what kind of application, web or not, you're writing. It's server is entirely separate from your application.
13 Apr 2021 by Dave Kreskowiak
With such a poor question, the only answer you're going to get is a generic one. Yes. How is dependent on your requirements and existing code, which I seriously doubt you have. This also has nothing to do with SignalR. SignalR just handles...
20 Jan 2016 by DavidGrey79
SummaryI am trying to create a system in .net C# that is an IT tool to control Windows clients where ever they are in the world. The agent needs to work over https and control will be given to an admin console else where in the world through a proxy web server. An example of the types of...
6 Feb 2017 by decklon1
I'm building a private chat application using signalr and knockout js. I am able to list currently login users and i need to pop up a chat box when listed username is clicked.What I have tried:My pop up script looks like this function register_popup(id, name) { for...
22 Sep 2016 by Deepak Vasudevan
I have a functionality that in a webpage first request to business layer reads an Apache MQ and sends the data back via SignalR. However I am at loss to see how to make the Apache MQ constantly being polled by BL and data pushed whenever there is a new item.What I have done till now?1)...
26 Dec 2014 by deepakdynamite
No they won't create any problem in design... You should check your html for this...
10 Nov 2014 by Deepu S Nair
Here is an perfect example for youhttp://blogs.msdn.com/b/timlee/archive/2013/03/21/hosting-a-signalr-application-on-windows-2008r2-and-iis-7-5.aspx[^]
27 Sep 2015 by delgaillo
Hello guys.I don't know if it's possible, but, I have two websites, the websites are located in different servers. One of the applications is a chat, and in the other application I need to know if the chat have agents. If the chat have agents, then the chat is open. And in the first...
28 Sep 2015 by delgaillo
Download the project again, your problem is rare, it is like problem of structure. I have opened that project with no problems in VS 2013 and VS 2015. Maybe you have renamed any folder or something. Try again.
5 Oct 2015 by delgaillo
I have the solution. $(document).ready(function () { var pop = new Pop(); pop.Start("http://www.url.com/signalr/hubs"); });In Pop I have the connection to the Hubpseudocodefunction Start(url) { var base = this; this.connection.hub.url = url; ...
8 Sep 2016 by Denis Lazendić
Simple project that shows how to use SignalR in ASP.NET MVC application to track progress of some long running process and display on clientside using Bootstrap modal.
19 Nov 2015 by Dennis Baberich
How to get a claimbased cookie authentication between custom frontend and self hosted SignalR server
20 Aug 2014 by Devdhiman82
CODE:public class JobInfoRepository { OracleDependency oracleDependency = null; public static bool IsNotified = false; public IEnumerable GetData() { try { using (var oracleConnection = new...
11 Aug 2014 by dorababu407
Hi, I am using SignalR for chatting users in my web application,signal version is 1.1.4.My application get strucks after SignalR connection started.I try to find issue using firebug , it shows the poll GET method SignalR loads continuously for never ending.GET...
16 May 2020 by dreevo
I have a log file that I have to trace in real time with signalr. I'm using the mapping to remote method and FileSystemEventHandler approach as follow : This is the method that watches the log file. public void Progress_Log(SchemaUpdate...
15 Jul 2017 by dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query
16 Apr 2016 by dsuryd
Building real-time web user interface for Windows service, or self-hosted with cross-platform Mono.
1 Aug 2018 by dsuryd
How to create a powerful reactive form on an ASP.NET Core Razor Page in MVVM style, with field configuration and validations written in C# and communicating with SignalR.
15 Mar 2015 by DungPSNV
I have a web application with 2 aspx page,- Login form- Message formWhen I login ok, I made Session["username"]=1, and i want to get Session["username"] value in hub using Signal RHow can I do it?
14 Oct 2014 by engineforce
Debug / Inspect WebSocket traffic with Fiddler
15 Nov 2013 by ExpertITM
Hello Frnds,I have a wpf application which is running on diffrunt clients pc which get data from a wcf web service.Now when update some data from web service I need to notify that to perticar client.So I need to push data from web service to clientHow can I do this?Thanks in...
7 Oct 2018 by F-ES Sitecore
I googled "asp.net chat application" and this was the first result https://pusher.com/tutorials/chat-aspnet/[^] I'm sure if you google yourself you'll find many more.
8 Mar 2018 by FeroseKhan
HiI need to create a multiple chat groups and admin will allocate the user corresponding to a group. To achieve this i chose SignalR , I tried reading multiple articles which helps me to do it in Asp.net 4.5 , Since my project is in asp.net 4.0 I could not use them.Kindly suggest me some...
22 Nov 2015 by Frekansss
Hi thereyou should give change notification permision to schema user. Like thatgrant change notification to USERID
5 Mar 2014 by frostcox
Hey guys I have a problem and i'm hoping someone can point me in the right direction. I want to start using SignalR in my application but when I install the packages from Nuget I get the following error "Could not load file or assembly 'Microsoft.Owin, Version=2.0.1.0" even though I have...
7 Mar 2014 by frostcox
Hey guys I have a problem which I need a little help with. I have a SignalR web project which I communicate with through a console application. When I run my SignalR Web application locally it works fine without any issues but when I deploy it to IIS and try create the hub proxy I get the error...
21 Mar 2014 by frostcox
Ok I finally found the solution to this. In IIS there is a setting Deny Anonymous users, by default this is set to true. So after I successfully authenticated the console application it worked like a treat.
13 Apr 2021 by gacar
I have a SignalR project. Can i use cache some records? And how? What I have tried: I haven't any idea. codeproject alert: Both the question and 'What have you tried' must be between 30 and 50000 characters.
29 Oct 2019 by gan chee siang
Hi everyone, who can help me why cannot connect to server side from client side? keep showing "Response status code does not indicate success: 404 (not found)" What I have tried: startup.cs using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using...
5 Mar 2014 by GaneshKale22
Try Thiscopy this Microsoft.Owin, Version=2.0.1.0.dll and paste in you application bin folder. Also check this dll is register or not in GAC.
16 May 2020 by Garth J Lancaster
Well .. I wouldn't be using the FileSystemEventHandler OnChanged event to attempt to get every line/group of lines added - there's too much buffering etc going on, and have a look here FileSystemWatcher.Changed Event (System.IO) | Microsoft...
29 May 2019 by Gerry Schmitz
2 problems: 1) I "found" 2) I don't understand Quote: Below is the code sample i found, something i don't understand Quickstart to learn how to use Azure SignalR Service | Microsoft Docs[^]
3 Oct 2019 by Gerry Schmitz
Upload speed is always slower than download speed; as much as 10x slower. And you can't compare "local" traffic (SQL Server Express) with traffic over the internet. Particularly if you're handling multiple streams. If you've got some "slower" network cards, switches or hubs in the mix, that...
8 Nov 2016 by Giridharan_BE
I want to create a web application using SignalR. Upon creation, I want to validate the pages with the custom authentication using UserName and Password. When the user opens the page which is created using SignalR to fetch realtime data, an instance of the page will be created.When the user...
16 Apr 2014 by Gordon Beeming
Hubs.tt will save your life
28 Nov 2014 by Gorige ashok kumar
How to show notification message in my webpage using signalR when delete a record in Jqgrid?
6 Mar 2017 by Graeme_Grant
Action is a pointer to a method. This is why it won't work. You need to tell the serializer to ignore it.If you are using Newtonsoft's Json lib, then tag the method with the JsonIgnore attribute.If you are using Microsoft's Json serializer, then tag the method with the Microsoft Ignore...
27 Aug 2017 by Graeme_Grant
Signalr progress bar Google Search[^] turns up a number of non-chat examples. TL;DR: The above search found these (plus much more): * SignalR Progress Bar Simple Example - Sending Live Data from Server to Client[^] * ProgressBar using JQueryUI and SignalR[^]
18 Aug 2023 by Graeme_Grant
You could use SignalR with javascript: signalr javascript example - Google Search[^] - that should point you in the right direction. UPDATE An alternative is to use server-side Blazor. Then you can write it all in C#. Under the covers,...