socket.io-client
socket.io-client copied to clipboard
websocket emit onclose when not have connection
We use 'multiple transports' and 'transports' : ['websocket', 'xhr-polling', 'jsonp-polling']
Firefox can't connect to websocket over proxy and change transport to 'xhr-pooling' and work fine. But after 20-30 sec websocket emit signal 'onclose' and close 'xhr-poolling' connection (becose 'xhr-poolling' currently active connection)
Websocket must check active connection, because now his can kill other worked connection.