WebSocket的.NET实现 SuperWebSocket
jopen
12年前
SuperWebSocket是WebSocket协议服务器端的.NET实现.
作为HTML5的一个重要新特性,WebSocket 规范的目标是在浏览器中实现和服务器端双向通信.双向通信可以拓展浏览器上的应用类型,例如实时的数据推送(股票行情),游戏,聊天/im 等.
现已支持WebSocket的浏览器有:
Protocol | Internet Explorer | Mozilla Firefox | Google Chrome | Safari | Opera | NetFront |
hixie-75 | 4 | 5.0.0 | ||||
hixie-76 hybi-00 | 4.0 (DISABLED) | 6 | 5.0.1 | 11.00 (DISABLED) | ||
hybi-06 | HTML5 Labs | dev | ||||
hybi-07 | 6.0 | |||||
hybi-09 | HTML5 Labs | |||||
hybi-10 | IE10 developer preview | 7 | 14 | |||
RFC 6455 | 11 | 16 |
SuperWebSocket是基于.NET开源Socket框架SuperSocket开发的, SuperSocket所支持的大部分功能在SuperWebSocket中得到了继承。用户可通过SuperWebSocket来快速的构建可靠的,高性能的websocket服务器端应用程序。
和SuperSocket一样,SuperWebSocket可以控制台和windows服务的形式运行,同时它还支持直接运行在Website之内,这样更简化了用户的部署。主要特性:
- hixie-76/hybi-00, hybi-10, rfc6455 are supported
- Async or Sync socket mode support
- Linux support by Mono 2.10+
- SSL/TLS encryption transferring (wss) support
- Sub protocol support
- Support mutiple hosting environment like windows service, console application and web site
- Support mutiple instances, you can run many websocket server instances on different ports in the same hosting application
- Maximum concurrency connection number limitation support
- Built-in JSON support
- Message level encryption