chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.62k stars 825 forks source link

websocket messages interception & manipulation #940

Open w0aw opened 10 months ago

w0aw commented 10 months ago

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