Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use SignalR in my Winform c# app?

Tags:

c#

signalr

I have a web service being polled every few seconds in my winform c# app. It checks for messages and gets them from my server and/or it relays messages from my desktop app to my server.

The web service is being invoke in an infinite loop which the User can stop and start at the click of a button. When the polling is on the memory goes up and stays up (which I guess I expected using infinite loop). If there was way for my server to notify my client that a message is available then I assume I can get rid of my infinite loop. I was looking at different architectures and I came across SignalR but it seems more geared for asp.net. Is that the case? Or can it be modified to work in my scenario here?

thanks

like image 471
Andrew Simpson Avatar asked Dec 08 '22 11:12

Andrew Simpson


1 Answers

Using SignalR as a client (or server) requires win8+ to get websockets. That should be something you are very aware of before using it. I learned the hard way ;) See support here http://www.asp.net/signalr/overview/signalr-1x/getting-started/supported-platforms

like image 176
Kim See Jonge Avatar answered Dec 11 '22 01:12

Kim See Jonge