sockjs/sockjs-client — pull request #149 by manuelstofer (2014-01-16 03:45:24+00:00)
Title: Add the ready state constants to the SockJS prototype

Adding the ready state constants to the prototype makes the api a bit closer to the WebSocket api specs.
Having them on the prototype also allows other applications / libraries to avoid an explicit SockJS dependency.