I've written a small echo-server (.net 4.5), console client (.net 4.5) and web client using SignalR and example presented here.
Server is hosted in IIS8/Win8. Then I ran both clients on Win7. and I see that web client in Chrome uses webSockets, while console app client uses serverSentEvents. If I run console client on Win8, then webSockets transport is in use.
Is it true that SignalR .NET client will use webSockets only on Win8 and higher?
ASP.NET Core SignalR is a library that simplifies adding real-time web functionality to apps. It uses WebSockets whenever possible.
Windows Desktop and Silverlight Applications In addition to running in a web browser, SignalR can be hosted in standalone Windows client or Silverlight applications.
NET Standard 2.0 client library that can be used to connect to a SignalR hub from applications built on . NET Core, . NET Framework, and more. To use the SignalR client library, import the Microsoft.
SignalR is relevant for now, it supports mobile devices, and many other things. SignalR is the same WebSocket but with many ready stuff. You can use raw WebSocket instead of it, but you will have to do many things to gain what you want. So SignalR is more easy to use.
It's correct: .NET client uses WebSockets only on Win8 and higher.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With