* Move @polkadot/x-{fetch,textdecoder,textencoder,ws}
* Adjust copyrights
* Fix jest aliassing
* tsconfig resolution
13 lines
194 B
Markdown
13 lines
194 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');
|
|
```
|