View Source GraphQLWSClient.Config (GraphQL Websocket Client v2.0.2)
A struct containing the configuration for a client.
Summary
Functions
Builds a new config.
Types
Functions
Builds a new config.
Options
:backoff_interval- The number of milliseconds to wait before trying to reconnect to the server.:connect_on_start- Determines whether to immediately connect to the server as soon as the client is started. When set tofalse, you need to manually connect by callingGraphQLWSClient.open/1. Defaults totrue.:driver- The driver module to use. Defaults toGraphQLWSClient.Drivers.Gun. Can be either a module or a tuple in the form of{MyDriverModule, opt_a: "hello world"}. The options are passed to the driver'sinit/1callback, if defined.:host- The host to connect to. This is ignored when:urlis specified instead.:init_payload- The payload send together with theconnection_initmessage. Is useful when you need to authenticate a connection with a token, for instance.:path- The path on the server. This is ignored when:urlis specified instead. Defaults to"/".:port- The port to connect to. This is ignored when:urlis specified instead.:query_timeout- The default query timeout in milliseconds. Defaults to5000.:url- The URL of the websocket to connect to. Overwrites the:host,:portand:pathoptions.