5

Are there any cross-platform (read: Mono-friendly) libraries that offer WebSocket server support and allow for asynchronous IO via a C# 5 async API?

SuperSocket.NET seems like the closest option, but does not appear to offer async support.

Mono itself does not yet implement System.Net.WebSockets.

Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
  • You can run XSockets.NET on Mono and there are async send methods but not with C#5. XSockets is built on .NET 4.0 http://xsockets.net – Uffe May 04 '13 at 07:53
  • [Alchemy Websockets](http://alchemywebsockets.net) is another Mono-compatible WebSocket library, but it doesn't appear to have async support. – Drew Noakes Jan 22 '14 at 14:26

2 Answers2

3

You can use now WebSocketListener.

It offers async methods.

vtortola
  • 34,709
  • 29
  • 161
  • 263
0

You should use SuperWebSocket instead of SuperSocket. Both SuperWebSocket and SuperSocket support async communications. SuperWebSocket is a websocket server base on SuperSocket.

Kerry Jiang
  • 1,168
  • 13
  • 10