{"library":"graphql-ws","type":"library","category":null,"description":"graphql-ws is a JavaScript/TypeScript library that provides a coherent, zero-dependency, and lazy implementation of the GraphQL over WebSocket Protocol for both server and client applications. The current stable version is 6.0.8, with a development cadence that includes frequent patch releases for bug fixes and minor enhancements. Major versions, like v6, typically introduce targeted breaking changes related to API adjustments or adapter integrations. A crucial differentiator is its strict adherence to the modern GraphQL over WebSocket Protocol, which makes it explicitly incompatible with the older, deprecated `subscriptions-transport-ws` library and its distinct protocol. The library offers flexible integration with various Node.js WebSocket server implementations such as `ws`, Fastify's `@fastify/websocket`, and `crossws`, catering to diverse server environments.","language":"javascript","status":"active","version":"6.0.8","tags":["javascript","protocol","graphql","transport","subscriptions","websockets","server","client","observables","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install graphql-ws","imports":["import { createClient } from 'graphql-ws';","import { useServer } from 'graphql-ws/lib/use/ws';","import { makeHandler } from 'graphql-ws/lib/use/@fastify/websocket';"]},{"cmd":"yarn add graphql-ws","imports":[]},{"cmd":"pnpm add graphql-ws","imports":[]}],"homepage":"https://the-guild.dev/graphql/ws","github":"https://github.com/enisdenjo/graphql-ws","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/graphql-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/graphql-ws/compatibility"}}