Transport providers for JsonRpcClient

Usage no npm install needed!

<script type="module">
  import adtJsonRpcTransportProviders from 'https://cdn.skypack.dev/@adt/json-rpc-transport-providers';



Transport providers for JsonRpcClient

Available providers

  • DummyTransportProvider
  • WebsocketTransportProvider
  • PostMessageTransportProvider

Writing own providers

Provider is an object, which must implement ProviderInterface. What will be done inside interface methods is up to you. How provider is constructed is up to you. It can be done by new operator, literal object, Objec.create etc... See next chapter for ProviderInterface details

Provider Interface