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