graphql-ws
6.4.1 · 15 Oct 2026MIT10.6M / weekRepositoryHomepagenpmAtom feed
6.4.1 is the newest release of 6.x.
In short
1 fixed
Release note
Patch Changes
Fix the server sending a
Completemessage after anErrormessage for subscriptions.Previously, when a subscription's async iterable threw an error, the server would send:
{"id":"1","type":"error","payload":[{"message":"..."}]} {"id":"1","type":"complete"}Per the protocol spec:
Error: This message terminates the operation and no further messages will be sent.
Complete (Server → Client): If the server dispatched the
Errormessage relative to the originalSubscribemessage, noCompletemessage will be emitted.The server now correctly sends only the
Errormessage:{"id":"1","type":"error","payload":[{"message":"..."}]}Clients that correctly follow the spec should be unaffected, as they are expected to ignore messages for operations they consider already completed.