Akryum / vue-cli-plugin-apollo

🚀 @vue/cli plugin for Vue Apollo
https://vue-cli-plugin-apollo.netlify.com/
478 stars 110 forks source link

Adding custom wsHeaders to SubscriptionClient #568

Open adamgoose opened 3 years ago

adamgoose commented 3 years ago

Related to #187 and #144, I'd like the ability to pass additional header values to the websocket connection.

ebisbe commented 2 years ago

@adamgoose do you use this for AWS appsync? I'm struggling to set the headers correctly and end up here.

adamgoose commented 2 years ago

@adamgoose do you use this for AWS appsync? I'm struggling to set the headers correctly and end up here.

Nah, trying to set x-hausura-role when trying to create subscriptions to a self-hosted instance of Hasura. Same thing, though.

ebisbe commented 2 years ago

I'll try this https://github.com/vuejs/apollo/issues/713#issuecomment-584148530 @adamgoose