start method

Future<void> start()

Runs until reconnection is exhausted or disposal ends the loop.

Implementation

Future<void> start() {
  if (_lifetime.isCanceled) throw StateError('WebSocket service disposed.');
  return _running ??= _run();
}