WebSocketNetworkTransport

A NetworkTransport that uses WebSockets to execute GraphQL operations. Most of the time, it is used for subscriptions but some WsProtocol like GraphQLWsProtocol also allow executing queries and mutations over WebSockets.

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard

Close the connection to the server if it's open.

Link copied to clipboard

Closes the websocket connection if the transport is a WebSocketNetworkTransport.

Closes the websocket connection if the transport is a WebSocketNetworkTransport.

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun <D : Operation.Data> execute(request: ApolloRequest<D>): Flow<ApolloResponse<D>>

Executes the given ApolloRequest using WebSockets