Files
common/packages/x-ws
Jaco 3d43aba4a1 Swap x-ws to use ws (#1749)
* Swap x-ws to use ws

* Revert swc usage

* Remove unneeded --env to test
2023-03-04 15:02:04 +02:00
..
2023-03-04 15:02:04 +02:00
2023-03-04 15:02:04 +02:00

@polkadot/x-ws

A cross-environment WebSocket.

Install it via yarn add @polkadot/x-ws

import { WebSocket } from '@polkadot/x-ws';

...
const ws = new WebSocket('wss://example.com');