networkEvents property

Stream<NetworkEvent> get networkEvents

Stream of network events

Implementation

Stream<NetworkEvent> get networkEvents =>
    client.subscribe(RequestSessionSubscribeToNetwork()).map(
          (r) => switch (r) {
            ResponseNetworkEvent(value: final value) => value,
            _ => throw InvalidData('unexpected event type'),
          },
        );