See https://github.com/sockjs/sockjs-client Created manually by inspecting the various parameters and return values. There are seperate events, since, although SockJS exposes a Websocket-like interface, it's not 100% same.