Aria2Connection constructor

Aria2Connection(
  1. String rpcUrl,
  2. String protocol,
  3. String secret
)

Implementation

Aria2Connection(this.rpcUrl, this.protocol, this.secret) {
  if (protocol == 'websocket') {
    var _socket = IOWebSocketChannel.connect(rpcUrl);
    _client = json_rpc.Client(_socket.cast<String>());
  }
}