JsonRpcProvider constructor

JsonRpcProvider(
  1. IJsonRpcConnection connection
)

Implementation

JsonRpcProvider(IJsonRpcConnection connection) : events = EventEmitter() {
  _connection = setConnection(connection);
  if (this.connection.connected) {
    _registerEventListeners();
  }
}