19 lines
505 B
JavaScript
19 lines
505 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.WebSocket = void 0;
|
||
|
function getGlobal() {
|
||
|
if (typeof self !== 'undefined') {
|
||
|
return self;
|
||
|
}
|
||
|
if (typeof window !== 'undefined') {
|
||
|
return window;
|
||
|
}
|
||
|
if (typeof global !== 'undefined') {
|
||
|
return global;
|
||
|
}
|
||
|
throw new Error('unable to locate global object');
|
||
|
}
|
||
|
;
|
||
|
const _WebSocket = getGlobal().WebSocket;
|
||
|
exports.WebSocket = _WebSocket;
|
||
|
//# sourceMappingURL=ws-browser.js.map
|