WebSocket support for some old browsers

This commit is contained in:
Vahe Hovhannisyan
2013-08-08 11:26:20 +02:00
parent c06c74e460
commit 08a2d771cd

View File

@@ -1 +1,6 @@
module.exports = WebSocket;
// If there is no WebSocket, try MozWebSocket (support for some old browsers)
try {
module.exports = WebSocket
} catch(err) {
module.exports = MozWebSocket
}