subscriptions_transport_ws library

An implementation of Apollo's subscriptions-transport-ws and graphql-transport-ws Web Socket subprotocols in Dart.

See: https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md

Classes

ErrorReason
Error codes sent when closing the websocket channel in graphql-transport-ws
GraphQLWebSocketServer
A GraphQL Web Socket Server implementation supporting graphql-transport-ws and graphql-ws (apollo) subprotocols.
OperationMessage
A basic message in the Apollo WebSocket and graphql-transport-ws subprotocols.
RemoteClient

Typedefs

CloseWithReason = Future<void> Function([int? code, String? reason])
A callback to close the client's channel with a code and reason