Interface WebSocketGraphQlClient
- All Superinterfaces:
- GraphQlClient,- WebGraphQlClient
GraphQL over WebSocket client that uses 
WebSocketClient.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for a GraphQL over WebSocket client.Nested classes/interfaces inherited from interface org.springframework.graphql.client.GraphQlClientGraphQlClient.BaseBuilder<B extends GraphQlClient.BaseBuilder<B>>, GraphQlClient.RequestSpec, GraphQlClient.RetrieveSpec, GraphQlClient.RetrieveSubscriptionSpec, GraphQlClient.RetrieveSyncSpec, GraphQlClient.SyncBuilder<B extends GraphQlClient.SyncBuilder<B>>
- 
Method SummaryModifier and TypeMethodDescriptionstatic WebSocketGraphQlClient.Builder<?>builder(String url, WebSocketClient webSocketClient) Return a builder for aWebSocketGraphQlClient.static WebSocketGraphQlClient.Builder<?>builder(URI url, WebSocketClient webSocketClient) Return a builder for aWebSocketGraphQlClient.static WebSocketGraphQlClientcreate(URI url, WebSocketClient webSocketClient) Create aWebSocketGraphQlClient.mutate()Return a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.reactor.core.publisher.Mono<Void>start()Start the GraphQL session by connecting the WebSocket, sending the "connection_init" and receiving the "connection_ack" message.reactor.core.publisher.Mono<Void>stop()Stop the GraphQL session by closing the WebSocket withCloseStatus.NORMALand terminating in-progress requests with an error signal.Methods inherited from interface org.springframework.graphql.client.GraphQlClientdocument, documentName
- 
Method Details- 
startreactor.core.publisher.Mono<Void> start()Start the GraphQL session by connecting the WebSocket, sending the "connection_init" and receiving the "connection_ack" message.Note: Only one session is started at a time. Additional attempts to start have no impact while a session is active. - Returns:
- Monothat completes when the WebSocket is connected and the GraphQL session is ready to send requests
 
- 
stopreactor.core.publisher.Mono<Void> stop()Stop the GraphQL session by closing the WebSocket withCloseStatus.NORMALand terminating in-progress requests with an error signal.New requests are rejected from the time of this call. If necessary, call start()to allow requests again.- Returns:
- Monothat completes when the underlying session is closed
 
- 
mutateWebSocketGraphQlClient.Builder<?> mutate()Description copied from interface:GraphQlClientReturn a builder initialized from the configuration of "this" client to use to build a new, independently configured client instance.- Specified by:
- mutatein interface- GraphQlClient
- Specified by:
- mutatein interface- WebGraphQlClient
 
- 
createCreate aWebSocketGraphQlClient.- Parameters:
- url- the GraphQL endpoint URL
- webSocketClient- the underlying transport client to use
 
- 
builderReturn a builder for aWebSocketGraphQlClient.- Parameters:
- url- the GraphQL endpoint URL
- webSocketClient- the underlying transport client to use
 
- 
builderReturn a builder for aWebSocketGraphQlClient.- Parameters:
- url- the GraphQL endpoint URL
- webSocketClient- the underlying transport client to use
 
 
-