Class WebSocketGraphQlRequest

All Implemented Interfaces:
ExecutionGraphQlRequest, GraphQlRequest

public class WebSocketGraphQlRequest extends WebGraphQlRequest
WebGraphQlRequest extension for server handling of GraphQL over WebSocket requests.
Since:
1.0.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • WebSocketGraphQlRequest

      public WebSocketGraphQlRequest(URI uri, HttpHeaders headers, Map<String,Object> body, String id, @Nullable Locale locale, WebSocketSessionInfo sessionInfo)
      Create an instance.
      Parameters:
      uri - the URL for the HTTP request or WebSocket handshake
      headers - the HTTP request headers
      body - the deserialized content of the GraphQL request
      id - the id from the GraphQL over WebSocket "subscribe" message
      locale - the locale from the HTTP request, if any
      sessionInfo - the WebSocket session id
  • Method Details

    • getSessionInfo

      public WebSocketSessionInfo getSessionInfo()
      Return information about the underlying WebSocket session.