start method

  1. @override
Future<void> start()
override

Start the long poll, throws LongPollingException on error or a long poll is already in place.

Implementation

@override
Future<void> start() {
  if (!_isPolling) {
    _isPolling = true;
    return _recursivePolling();
  } else {
    throw LongPollingException('A long poll is aleady inplace');
  }
}