IOTConnect-Web/node_modules/websocket-stream/ws-fallback.js

13 lines
257 B
JavaScript
Raw Normal View History

2024-05-09 01:49:52 +00:00
var ws = null
if (typeof WebSocket !== 'undefined') {
ws = WebSocket
} else if (typeof MozWebSocket !== 'undefined') {
ws = MozWebSocket
} else if (typeof window !== 'undefined') {
ws = window.WebSocket || window.MozWebSocket
}
module.exports = ws