Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
WebSocket emulation - Javascript client
JavaScript HTML

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
tests
.gitignore
COPYING
LICENSE-MIT-SockJS
Makefile
README.md
VERSION-GEN
package.json
version

README.md

SockJS

Pure JavaScript WebSockets-like API for browsers that don't support HTML5 or are running behind a proxy.

  • No Flash inside (no need to open port 843 - which often doesn't work through proxies, no need to host crossdomain.xml)
  • All the transports support cross domain connections. It's possible and recommended to host SockJS on different domain than your main web site.
  • Polling transports are be used as a fallback for old browsers and hosts behind restrictive proxies.

Supported transports

Protocol Browser
WebSocket hixie-76 Chrome 6-12, Safari 5, Firefox 4 (disabled), Opera 11 (disabled)
WebSocket hybi-10 Chrome 14+, Firefox 6+
IFrame via postMessage + EventSource Opera 10.70+, Firefox 3.5+
XDR streaming (CORS) IE 8, Firefox 3.5+, Safari 4+, Chrome 3+
XDR polling (CORS) IE 8, Firefox 3.5+, Safari 4+, Chrome 3+ (through misbehaving proxy)
IFrame via postMessage + XHR polling Opera 9+
JsonP polling (fallback)
Something went wrong with that request. Please try again.