Skip to content

Commit

Permalink
Polishing documentation
Browse files Browse the repository at this point in the history
See gh-608
  • Loading branch information
rstoyanchev committed Apr 11, 2024
1 parent 10ea73d commit b84d521
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions spring-graphql-docs/modules/ROOT/pages/client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,20 @@ existing `WebSocketGraphQlClient` to create a new instance with customized setti
----

If you'd like the client to send regular graphql ping messages to the server, you can add these by adding `keepalive(long seconds)` to the builder
`WebSocketGraphQlClient` supports sending periodic ping messages to keep the connection
active when no other messages are sent or received. You can enable that as follows:

[source,java,indent=0,subs="verbatim,quotes"]
----
WebSocketGraphQlClient graphQlClient = WebSocketGraphQlClient.builder(url, client)
.keepalive(30)
.build();
URI url = ... ;
WebSocketClient client = ... ;
WebSocketGraphQlClient graphQlClient = WebSocketGraphQlClient.builder(url, client)
.keepAlive(Duration.ofSeconds(30))
.build();
----


[[client.websocketgraphqlclient.interceptor]]
==== Interceptor

Expand Down

0 comments on commit b84d521

Please sign in to comment.