0.3.4 • Published 8 months ago

@polkadot-api/ws-provider v0.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@polkadot-api/ws-provider

JsonRpcProvider to connect to a chain via a WebSocket.

function WebSocketProvider(
  uri: string,
  protocols?: string | string[],
): JsonRpcProvider

This package doesn't have any export on the root. Instead it has 2 subpaths, each for a different environment.

For web runtimes, where the browser's WebSocket constructor can be used, import WebSocketProvider from @polkadot-api/ws-provider/web.

For other runtimes where the WebSocket from the module ws should be used instead, import WebSocketProvider from @polkadot-api/ws-provider/node.

0.3.4

8 months ago

0.3.3

8 months ago

0.3.0

9 months ago

0.3.2

8 months ago

0.3.1

9 months ago

0.2.1

9 months ago

0.2.2

9 months ago

0.1.1

11 months ago

0.2.0

10 months ago

0.1.0

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago