I think it would be better to use the deprecated 2nd constructor argument for subprotocols. This would mirror the WebSocket interface which is the intended goal of SockJS.