JSPM

@polkadot/x-ws

8.0.3-0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 159264
  • Score
    100M100P100Q169241F
  • License Apache-2.0

A cross-environment WebSocket replacement

Package Exports

  • @polkadot/x-ws
  • @polkadot/x-ws/README.md
  • @polkadot/x-ws/browser
  • @polkadot/x-ws/browser.d.ts
  • @polkadot/x-ws/index.d.ts
  • @polkadot/x-ws/node
  • @polkadot/x-ws/node.d.ts
  • @polkadot/x-ws/package.json
  • @polkadot/x-ws/packageInfo
  • @polkadot/x-ws/packageInfo.d.ts
  • @polkadot/x-ws/react-native
  • @polkadot/x-ws/react-native.d.ts

Readme

@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');