mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
better websocket detection + sniffing for WebSocket fallback
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
*/
|
||||
|
||||
WS.check = function(){
|
||||
return !! window.WebSocket;
|
||||
return 'WebSocket' in window && !('__addTask' in WebSocket);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user