events property

Stream<void> get events

Stream of repository notification events

Implementation

Stream<void> get events =>
    client.subscribe(RequestRepositorySubscribe(repo: handle)).map(
          (r) => switch (r) {
            ResponseRepositoryEvent() => null,
            _ => throw InvalidData('unexpected event type'),
          },
        );