Class WebSocketState

java.lang.Object
io.micronaut.websocket.bind.WebSocketState

@Internal public class WebSocketState extends Object
Holder object used to bind WebSocket state.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • WebSocketState

      public WebSocketState(WebSocketSession session, HttpRequest<?> originatingRequest)
      Default constructor.
      Parameters:
      session - The session
      originatingRequest - The originating request
  • Method Details

    • getSession

      public WebSocketSession getSession()
      Returns:
      The session
    • getOriginatingRequest

      public HttpRequest<?> getOriginatingRequest()
      Returns:
      The originating request