apollographql / embeddable-explorer

MIT License
35 stars 12 forks source link

Graphql Subscription connectionParams #289

Closed georgesofianosgr closed 5 months ago

georgesofianosgr commented 1 year ago

Reading the documentation I cannot find a way to pass connectionParams in subscriptions.

We use connectionParams for authorization. Did I miss something or there is no way to pass connectionParams ?

mayakoneval commented 12 months ago

Hi! Apologies for the delay in response. Are you looking to pass headers? If you are - you can do that with the headers option.

If you are looking to set these on an Embedded Explorer, you can do that from the shared headers in the connection settings on your graph as well.

vindard commented 11 months ago

Same question, when I open Connection settings these aren't editable. I'd like to somehow be able to configure that Subscription Endpoint string

image

mayakoneval commented 5 months ago

Hi - you can pass initialSubscriptionEndpoint to your EmbeddedSandbox instance to configure the subscription endpoint, thank you!