Implementing Pub / Sub or SignalR Functions on .NET 3.5?

Using SignalR , it is quite easy to synchronize individual browsers of client computers in real time using the built-in PUB / SUB mechanism. However, SignalR can only be used with .NET 4.0 or higher. We are trying to achieve similar functionality in .NET 3.5, since we cannot update our application at this time.

Given the fact that SignalR uses the latest technology -

  • Parallel library task in dot net 4.0
  • WebSockets in HTML5
  • Asynchronous Postbacks Using AJAX

For asynchronous calls, we plan to use the classic BeginAsync and callback approach, and ThreadPool to create multiple threads. Also learn how to use HTML 5 WebSocket.

We evaluate other alternatives, also use jQuery AJAX and write a custom IIS Hander that can receive async updates from client 1 and push it to Client 2, etc.

If you have done something similar in the past, can you suggest which approach would be the right one to continue?

Thank you for your time.

+6
source share
2 answers

I passed v1.x and v2.x SignalR to NET35 clients. They are available as NuGet packages here: http://www.nuget.org/packages/Nivot.SignalR.Client.Net35/

+2
source

You can use node.js and combine with mvc proyect in .net

in a hybrid application

http://sweettam.blogspot.mx/2012/06/hybrid-application-using-aspnet-mvc3.html

Good luck.

0
source

Source: https://habr.com/ru/post/926573/


All Articles