0.2.3 • Published 10 months ago

@polkadot-api/json-rpc-provider-proxy v0.2.3

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

@polkadot-api/json-rpc-provider-proxy

This package exports getSyncProvider, a function to create JsonRpcProviders that will act as if the connection happen synchronously.

export type AsyncJsonRpcProvider = (
  onMessage: (message: string) => void,
  onHalt: () => void,
) => JsonRpcConnection

function getSyncProvider(
  input: () => Promise<AsyncJsonRpcProvider>,
): JsonRpcProvider

The returned provider will buffer up every message until it can get the JsonRpcConnection, at which point it will send every message buffered.

0.2.3

10 months ago

0.2.2

10 months ago

0.2.1

11 months ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago