Apollo Client WebSocket network link for GraphQL operations. Current stable version 2.6.1, released 2021-05-11, no regular releases since. Provides a WebSocket-based ApolloLink alternative to apollo-link-ws/subscriptions-transport-ws. Features deferred connection, keepalive, and custom messaging. Uses a custom framed protocol (WebSocket-Framed) instead of subscriptions-transport-ws protocol. Requires apollo-client >=2.1.0 and apollo-link >=1.0.7 as peer dependencies. Node >=8.0.0 required. Not subscription-oriented.
npm install apollo-client-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a WebSocket link for Apollo Client and runs a simple query.
Use Node.js >=8.0.0 or polyfill missing features.
Ensure server speaks WebSocket-Framed protocol or use apollo-link-ws.
Consider using @apollo/client with built-in WebSocket support or apollo-link-ws.
Run: npm install apollo-client-ws
Use const { ApolloClientWS } = require('apollo-client-ws');