start method

Future<void> start()

Implementation

Future<void> start() async {
  if (_wsConnection == null) {
    throw Exception("[wsConnection] run setup before start");
  }
  await _wsConnection!.start();
  if (_invokes == null) {
    throw Exception("[wsConnection] missing invokes");
  }
  _invokes!.forEach((key, value) => _wsConnection!.invoke(key, args: value));
}