Optional
autoOptional
connectionTimeout to receive acknowledgement, in milliseconds. Defaults to 3000.
Optional
connectionPayload to send during initialization. May be used server-side to acknowledge the connection.
Optional
createOverrides web socket creation. For example, when using GraphQLWebSocketClient on server-side, you'll need to create a WebSocket from "ws" instead of a standard WebSocket.
Optional
maxMaximum delay to wait before reconnection, in milliseconds. Defaults to 30000.
Optional
minMinimum delay to wait before reconnection, in milliseconds. Reconnections only happen with open subscriptions and are controlled per subscription (see GraphQLWebSocketClient.subscribe()). The minimum is 10. Defaults to 500.
Optional
protocolWebSocket sub-protocol to use. Either "graphql-transport-ws" or "graphql-ws" (legacy). Defaults to "graphql-transport-ws".
Optional
reconnectReconnection delay multiplier. Defaults to 2 (for exponential back-off).
Optional
typingsURL to GraphQL API.
Should the client automatically reconnect on normal socket closure? Defaults to true.