Class ProxyWebsocketsIntoGrid

java.lang.Object
org.openqa.selenium.grid.router.ProxyWebsocketsIntoGrid
All Implemented Interfaces:
BiFunction<String,Consumer<org.openqa.selenium.remote.http.Message>,Optional<Consumer<org.openqa.selenium.remote.http.Message>>>

public class ProxyWebsocketsIntoGrid extends Object implements BiFunction<String,Consumer<org.openqa.selenium.remote.http.Message>,Optional<Consumer<org.openqa.selenium.remote.http.Message>>>
Proxies WebSocket connections from the Router to a Grid node.

After the Netty-side upgrade handshake completes (PostUpgradeHook), the pipeline is simplified: MessageInboundConverter, MessageOutboundConverter, and WebSocketMessageHandler are replaced by a WebSocketFrameProxy that forwards WebSocketFrame objects directly to the node-side WebSocket. This eliminates one intermediate object allocation and one executor-task submission per frame in each direction.

  • Constructor Details

    • ProxyWebsocketsIntoGrid

      public ProxyWebsocketsIntoGrid(org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions)
  • Method Details