Class WebSocketContext

java.lang.Object
dev.voidframework.web.http.WebSocketContext

public final class WebSocketContext extends Object
A WebSocket request context.
Since:
1.3.0
  • Constructor Details

    • WebSocketContext

      public WebSocketContext(WebSocketRequest webSocketRequest, io.undertow.websockets.core.WebSocketChannel webSocketChannel)
      Build a new instance.
      Parameters:
      webSocketRequest - The WebSocket request
      webSocketChannel - The WebSocket channel
      Since:
      1.3.0
  • Method Details

    • getRequest

      public WebSocketRequest getRequest()
      Retrieves the request.
      Returns:
      The current request
      Since:
      1.3.0
    • getChannel

      public io.undertow.websockets.core.WebSocketChannel getChannel()
      Retrieves the WebSocket channel.
      Returns:
      The WebSocket channel
      Since:
      1.3.0