py-graphql-client icon indicating copy to clipboard operation
py-graphql-client copied to clipboard

Subscription parameters wrapped in "headers" attribute

Open jasonkatz opened this issue 4 years ago • 0 comments

Hi,

I'm looking to pass some auth information in subscription parameters, but the payload for the connection initialization wraps the headers in a nested headers attribute (here, instead of passing them as-is.

This assumes that the target server looks inside a headers property on the incoming parameters - different servers handle these payloads differently. Some added flexibility to the client library will make it much more versatile and usable against various servers.

I will submit a quick PR to address this, but looking forward to hearing any thoughts!

jasonkatz avatar Feb 03 '21 16:02 jasonkatz