Created a pull request for SockJS, lets see if it gets accepted:
https://github.com/sockjs/sockjs-client/pull/149