onWebSocketWillSendHandshakeRequest property

Stream<WebSocketWillSendHandshakeRequestEvent> get onWebSocketWillSendHandshakeRequest

Fired when WebSocket is about to initiate handshake.

Implementation

Stream<WebSocketWillSendHandshakeRequestEvent>
get onWebSocketWillSendHandshakeRequest => _client.onEvent
    .where(
      (event) => event.name == 'Network.webSocketWillSendHandshakeRequest',
    )
    .map(
      (event) =>
          WebSocketWillSendHandshakeRequestEvent.fromJson(event.parameters),
    );