nhost_gql_links
library
Constants
webSocketNormalCloseCode
→ const int
The code sent to the server when the socket closes in order to send new
authentication information.
Functions
combinedLinkForNhost (String nhostGqlEndpointUrl , Auth nhostAuth , {Client? httpClientOverride })
→ Link
Creates a link that that configures automatically based on nhostClient
's
authentication state, and will select HTTP or Web Socket transport as
appropriate.
httpLinkForNhost (String nhostGqlEndpointUrl , Auth nhostAuth , {Client? httpClientOverride , })
→ Link
Creates an HTTP link that configures automatically based on nhostAuth
's
authentication state.
webSocketLinkForNhost (String nhostGqlEndpointUrl , Auth nhostAuth , {ChannelGenerator? testChannelGenerator , Duration ? testInactivityTimeout , Duration testReconnectTimeout = const Duration(seconds: 3) })
→ Link
Creates a web socket link that configures (and reconfigures) automatically
based on nhostAuth
's authentication state.