onWebSocketFrameReceived property

Stream<WebSocketFrameReceivedEvent> get onWebSocketFrameReceived

Fired when WebSocket message is received.

Implementation

Stream<WebSocketFrameReceivedEvent> get onWebSocketFrameReceived => _client
    .onEvent
    .where((event) => event.name == 'Network.webSocketFrameReceived')
    .map((event) => WebSocketFrameReceivedEvent.fromJson(event.parameters));