oliyh / re-graph

A graphql client for clojurescript and clojure
461 stars 40 forks source link

How do I set Headers for each individual subscriptions? #79

Closed anonimitoraf closed 3 years ago

anonimitoraf commented 3 years ago

Gist of my problem is:

oliyh commented 3 years ago

Hi,

I'm surprised that doesn't work, but as the headers are sent when the websocket is connected and the websocket is designed for longer durations I would suggest you open two connections, one for public and one for user - see the Multiple instances section in the readme.

Let me know if you need any more help Cheers

anonimitoraf commented 3 years ago

Hey @oliyh

Thank you for the library by the way! So much simpler than the convoluted clients out there (apollo, etc).

I see, I'll try that out, thanks

anonimitoraf commented 3 years ago

Works perfectly. Thanks!