13 lines
198 B
Markdown
13 lines
198 B
Markdown
# @polkadot/x-ws
|
|
|
|
A cross-environment WebSocket.
|
|
|
|
Install it via `yarn add @polkadot/x-ws`
|
|
|
|
```js
|
|
import { WebSocket } from '@polkadot/x-ws';
|
|
|
|
...
|
|
const ws = new WebSocket('wss://example.com');
|
|
```
|