Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SignalR with .net 3.5

I would like to build a winform business solution using SiganlR, but I am not able to install .net 4.0 on the client machine. It looks like SignalR has a mininum requirement of .net 4.0. What is the best way to use SignalR from a winform and .net 3.5. I would like to include the send/receive message functions in the client application.

I will be hosting SignalR on IIS on my intranet using .net 4.0 on the server side.

Would it be possible to create and API (in .net 3.5) similar to pubnub C#? Can anyone point me in the right direction.

like image 388
spinner_den_g Avatar asked Feb 20 '12 23:02

spinner_den_g


2 Answers

If you're not too scared of compiling your own stuff I have created a .net 2.0 compatible client library for SignalR. It's available right off my fork (https://github.com/robink-teleopti/SignalR) of SignalR.

At the moment I have no intent of making a pull request as I don't want to add that extra burden to the original project.

I have one more modification on my fork that can be good to know about. When having clients belonging to more than 20 groups I automatically switch to using POST instead of GET and I have made minor modifications on the server side to handle that part.

like image 97
RobinK-Teleopti Avatar answered Sep 19 '22 21:09

RobinK-Teleopti


I backported the v1.x and v2.x SignalR clients to NET35. Available as NuGet packages here: http://www.nuget.org/packages/Nivot.SignalR.Client.Net35/

like image 39
x0n Avatar answered Sep 18 '22 21:09

x0n