Interface MessagingListenerContribution

interface MessagingListenerContribution {
    onDidWebSocketUpgrade(request, socket): MaybePromise<void>;
}

Methods

  • Function invoked when a HTTP connection is upgraded to a websocket.

    Parameters

    • request: IncomingMessage

      The HTTP connection upgrade request received by the server.

    • socket: Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>

      The WebSocket that the connection was upgraded to.

    Returns MaybePromise<void>