websocket messages interception & manipulation

Author: w0awCreated Sep 10, 2023Updated Dec 5, 2024

Describe the feature you'd love to see

can we intercept each and every incoming or outgoing websocket messages & manipulate like normal http responses?

use case - ie. use this proxy as gateway & inspect all graphql subscription messages.( so we can double check user is subscribed to his data only)

let me know if i am at wrong place

Additional context (optional)

existing resource - https://wundergraph.com/blog/quirks_of_graphql_subscriptions_sse_websockets_hasura_apollo_federation_supergraph#manipulating/filtering-graphql-subscription-messages

Source: chimurai/http-proxy-middleware