ws-browser.js 404 B

12345678910111213141516
  1. function getGlobal() {
  2. if (typeof self !== 'undefined') {
  3. return self;
  4. }
  5. if (typeof window !== 'undefined') {
  6. return window;
  7. }
  8. if (typeof global !== 'undefined') {
  9. return global;
  10. }
  11. throw new Error('unable to locate global object');
  12. }
  13. ;
  14. const _WebSocket = getGlobal().WebSocket;
  15. export { _WebSocket as WebSocket };
  16. //# sourceMappingURL=ws-browser.js.map