The subscription-client contract the transport depends on: a single
iterate(request) method returning the subscription's async iterator.
This is intentionally the smallest shape that both graphql-ws's and
graphql-sse's createClient() already satisfy, so either drops in with no
wrapping. Calling .return() on the iterator must promptly stop the
underlying subscription and settle any pending .next() call.
The subscription-client contract the transport depends on: a single
iterate(request)method returning the subscription's async iterator.This is intentionally the smallest shape that both
graphql-ws's andgraphql-sse'screateClient()already satisfy, so either drops in with no wrapping. Calling.return()on the iterator must promptly stop the underlying subscription and settle any pending.next()call.