oberstet/Autobahn — Issue #94: WAMP disconnects Safari
Author: cboden
Created: 2012-02-08 21:16:11+00:00
State: open

In the self._websocket.onopen function the first block of code checks to see if the server agreed to the "wamp" sub-protocol and closes the socket connection if the server did not agree.

Safari, which uses the Hixie protocol, does not set agreed upon sub-protocols in the WebSocket.protocol object like Chrome does. This results in ab.Session closing the connection even if both server and client have agreed upon the protocol.

Safari, unlike Chrome, will close the connection if both client and server don't agree upon every sub-protocol. This, while less than ideal, works well with WAMP.

My question, is can an additional check be done to see if the server agreed to the wamp protocol, so it doesn't disconnect Safari connections?