* Remove browser.ts global reference * fallback text * formatting * Additional formatting * global > self > window > this * Add x-global package * Update tests * Correct jest mapping
7 lines
192 B
TypeScript
7 lines
192 B
TypeScript
// Copyright 2017-2021 @polkadot/x-ws authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { xglobal } from '@polkadot/x-global';
|
|
|
|
export const WebSocket = xglobal.WebSocket;
|