onEventSourceMessageReceived property

Stream<EventSourceMessageReceivedEvent> get onEventSourceMessageReceived

Fired when EventSource message is received.

Implementation

Stream<EventSourceMessageReceivedEvent> get onEventSourceMessageReceived =>
    _client.onEvent
        .where((event) => event.name == 'Network.eventSourceMessageReceived')
        .map((event) =>
            EventSourceMessageReceivedEvent.fromJson(event.parameters));