WebSocket支持库-SockJS
SockJS 是一个为不支持 WebSocket的浏览器的JavaScript 库,该库可提供模拟对 WebSocket 的支持,实现浏览器和 Web 服务器之间低延迟、全双工的通讯通道,同时还提供有各种语言的绑定程序。在MIT协议下授权使用。
SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.
Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions.
SockJS is intended to work for all modern browsers and in environments which don't support WebSocket protocol, for example behind restrictive corporate proxies.
最新版本:0.3
项目主页:https://github.com/sockjs