Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 504 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 504 Bytes

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