ziron-client
Version:
1 lines • 437 B
JavaScript
;let globalScope;"undefined"!=typeof WorkerGlobalScope?globalScope=self:"undefined"!=typeof window&&window&&(globalScope=window);const GlobalWebSocket="object"==typeof globalScope&&globalScope?window.WebSocket||window.MozWebSocket:null;if(null==GlobalWebSocket)module.exports=null;else{function Ws(o,e,l){return null!=e?new GlobalWebSocket(o,e):new GlobalWebSocket(o)}Ws.prototype=GlobalWebSocket.prototype,module.exports=Ws}