Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any decent Websocket C# implementations? [closed]

Tags:

c#

websocket

I have already created my server in System.Net.WebSockets and now after transferring it between machines I had noticed Windows Server 2008 is not supported, are there any other implemetations which support an X509Certificate as authentication and would require minimal conversation.

I have been googling for this in the past 2 hours but haven't found anything meaningful, just a collection of poorly written, poorly documented libraries that throw exceptions on the regular, specifically SuperSocket, the server implementation of which seems to be complete buggy bull.

Could anyone post some sample client code from a decent library? I am growing desperate.

like image 834
user2228063 Avatar asked Apr 07 '13 02:04

user2228063


People also ask

Are WebSockets outdated?

Websockets are largely obsolete because nowadays, if you create a HTTP/2 fetch request, any existing keepalive connection to that server is used, so the overhead that pre-HTTP/2 XHR connections needed is lost and with it the advantage of Websockets.

Are WebSockets CPU intensive?

There are several challenges you have to overcome because the WebSockets protocol is more CPU demanding on the client's side than on the server's side. At the same time you need a lot of RAM to store information about open connections if you have millions of them.

Why you should not use WebSocket?

Avoid using WebSockets if only a small number of messages will be sent or if the messaging is very infrequent. Unless the client must quickly receive or act upon updates, maintaining the open connection may be an unnecessary waste of resources.

Which is best WebSocket or SignalR?

WebSockets is actually the underlying transport that SignalR uses, at least most of the time. SignalR has the ability to fall back to other ways of transporting messages, such as long-polling over HTTP. This is useful in situations where you don't have WebSockets support.


1 Answers

Frameworks include:

  • SignalR
  • XSockets
  • Super WebSocket
  • Alchemy WebSockets
  • Fleck

More options available via the realtime web tech guide

like image 64
leggetter Avatar answered Oct 14 '22 15:10

leggetter