ws-browser.js 505 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.WebSocket = void 0;
  4. function getGlobal() {
  5. if (typeof self !== 'undefined') {
  6. return self;
  7. }
  8. if (typeof window !== 'undefined') {
  9. return window;
  10. }
  11. if (typeof global !== 'undefined') {
  12. return global;
  13. }
  14. throw new Error('unable to locate global object');
  15. }
  16. ;
  17. const _WebSocket = getGlobal().WebSocket;
  18. exports.WebSocket = _WebSocket;
  19. //# sourceMappingURL=ws-browser.js.map