@adt/json-rpc-transport-providers

0.0.1-SNAPSHOT.11 • Public • Published

JsonRpcTransportProviders

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

Package Sidebar

Install

npm i @adt/json-rpc-transport-providers

Weekly Downloads

9

Version

0.0.1-SNAPSHOT.11

License

MIT

Unpacked Size

50.7 kB

Total Files

7

Last publish

Collaborators

  • adt