Files
common/packages/x-ws/src/shim.ts
T
2022-01-01 09:26:11 +02:00

8 lines
235 B
TypeScript

// Copyright 2017-2022 @polkadot/x-ws authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { exposeGlobal } from '@polkadot/x-global';
import { WebSocket } from '@polkadot/x-ws';
exposeGlobal('WebSocket', WebSocket);