mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
WebSocket support for some old browsers
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user