Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is ASP.NET Core SignalR backwards compatible with ASP.NET SignalR

Is the ASP.NET Core SignalR server backwards compatible with an ASP.NET SignalR client?

I have a server implementation based on the old ASP.NET SignalR with PersistentConnection that I want to move to ASP.NET Core but old clients must still be able to connect to the new server platform - upgrading the clients is a slow process.

This is a general question and I think it deserves its own post without the clutter of broken code.

like image 783
MatiasK Avatar asked Jun 28 '18 13:06

MatiasK


People also ask

Is SignalR backwards compatible?

SignalR also supports WebSockets, and is backwards-compatible for older browsers (it uses older transports where necessary, i.e. for browsers that don't support HTML5).

What platform does SignalR client supports?

Desktop and Mobile versions are supported. Mozilla Firefox: current version - 1, both Windows and Mac versions. Google Chrome: current version - 1, both Windows and Mac versions. Safari: current version - 1, both Mac and iOS versions.

What is SignalR ASP NET core?

What is SignalR? ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push content to clients instantly. Good candidates for SignalR: Apps that require high frequency updates from the server.

What you can do with ASP.NET and SignalR?

SignalR can be used to add any sort of "real-time" web functionality to your ASP.NET application. While chat is often used as an example, you can do a whole lot more. Any time a user refreshes a web page to see new data, or the page implements long polling to retrieve new data, it is a candidate for using SignalR.


2 Answers

ASP.NET Core SignalR isn't compatible with clients or servers for ASP.NET SignalR. Detailed explanation is given into this Microsoft Article

like image 25
Rudresh Bhatt Avatar answered Sep 22 '22 07:09

Rudresh Bhatt


The answer is no, and it is stated in the this MSDN blog post

We added a number of new features to SignalR for ASP.NET Core but we also decided to remove support for some of the existing features or change how they work. One of the consequences of this is that SignalR for ASP.NET Core is not compatible with previous versions of SignalR. This means that you cannot use the old server with the new clients or the old clients with the new server. Below are the features which have been removed or changed in the new version of SignalR.

Thanks @ATerry for pointing me to this SO post

like image 170
MatiasK Avatar answered Sep 22 '22 07:09

MatiasK