The server is self hosted and the connection is cross domain using long polling (not jsonp).
Fix Firefox not disconnecting on refresh
- Change the withCredentials flag to only be auto-set when cross-domain is detected (can still be explicitly set)
- Conditionally do an async abort if the browser is Firefox 11+ AND withCredentials is true
opened two tabs of firefox, refreshed one of the tabs, the other tab receives OnDisconnected and OnConnected events as expected