subscriptions-transport-ws
JSON →A WebSocket transport for GraphQL subscriptions, queries, and mutations. Current version 2.0.2 is in maintenance mode; development is stalled and the package is not actively maintained. It provides a SubscriptionServer (server-side) and SubscriptionClient (client-side) for GraphQL over WebSocket, using the legacy graphql-ws protocol. The package requires graphql and ws as peer dependencies. It is commonly used with Apollo Client/Server but can integrate with any GraphQL ecosystem. The project is superseded by graphql-ws (library), which implements the new GraphQL over WebSocket specification. Critical caveat: always consider migrating to graphql-ws to avoid protocol incompatibilities and lack of updates.