[Mono-dev] WebSocket Support in Mono

Teravus Ovares teravus at gmail.com
Thu Apr 30 00:57:38 UTC 2015

I'm not sure if it's supported...   and...   WebSockets are not actually
that difficult to write yourself...    I wrote one for A HTTP Server other
then HttpListener that I was using.  Source Code Here:

To adapt it to HTTPListener you really need to be able to get at the low
level stream when completing the handshake.

BSD-Ish license

The biggest issue you have with it is be sure that you have the proper
limits set on payload and proper authentication for when you want to accept
the handshake otherwise it's easy to exploit for bad purposes and create a
denial of service on whatever you're writing.   Also, it's a pure WebSocket
implementation with no extensions.   One final thing to mention..  the HTTP
Server that I was using, I also added idle thread management to the server
prior to implementing WebSockets (One thread can handle multiple
connections) because the HttpListener, if I remember correctly, uses
threads from the threadpool...   and Websockets tend to be long running
threads that do not do much..   which is generally a bad strategy with
Threadpool threads.



On Mon, Apr 27, 2015 at 9:05 PM, techi eth <techieth at gmail.com> wrote:

> Hi,
> Is mono is supporting Websocket ?
> When I look Web socket handling in HttpListnerRequest in .Net4.5
> implementation in mono it is always returning False.(Flag :
> IsWebSocketRequest)
> Thanks
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150429/49915a44/attachment.html>

More information about the Mono-devel-list mailing list