UNPKG

@etherspot/data-utils

Version:
47 lines (43 loc) 1.18 kB
import { __commonJS, __toESM } from "./chunk-PVVZGNOS.mjs"; // node_modules/ws/browser.js var require_browser = __commonJS({ "node_modules/ws/browser.js"(exports, module) { "use strict"; module.exports = function() { throw new Error( "ws does not work in the browser. Browser clients must use the native WebSocket object" ); }; } }); // node_modules/isows/_esm/index.js var WebSocket_ = __toESM(require_browser(), 1); // node_modules/isows/_esm/utils.js function getNativeWebSocket() { if (typeof WebSocket !== "undefined") return WebSocket; if (typeof global.WebSocket !== "undefined") return global.WebSocket; if (typeof window.WebSocket !== "undefined") return window.WebSocket; if (typeof self.WebSocket !== "undefined") return self.WebSocket; throw new Error("`WebSocket` is not supported in this environment"); } // node_modules/isows/_esm/index.js var WebSocket3 = (() => { try { return getNativeWebSocket(); } catch { if (WebSocket_.WebSocket) return WebSocket_.WebSocket; return WebSocket_; } })(); export { WebSocket3 as WebSocket }; //# sourceMappingURL=_esm-YCSIZNZI.mjs.map