Closed anonimitoraf closed 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
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
Works perfectly. Thanks!
Gist of my problem is:
X-Hasura-Role: public
, others needX-Hasura-Role: user
Doesn't work :(