onWebSocketClosed property

Stream<WebSocketClosedEvent> get onWebSocketClosed

Fired when WebSocket is closed.

Implementation

Stream<WebSocketClosedEvent> get onWebSocketClosed => _client.onEvent
    .where((event) => event.name == 'Network.webSocketClosed')
    .map((event) => WebSocketClosedEvent.fromJson(event.parameters));