I have a problem testing graphql subscriptions. Our APIs are protected (https/wss) and on the connection start the initial message must have JWT token, otherwise the server rejects the subscription request.
With a graphql-ws protocol a client has the possibility to send an initial message with an arbitrary payload. How this kind of operation could be done with Postman?
Details
I created a GraphQL server instance that checks onSubscribe if the user is authenticated and returns an error. I used the graphql-ws library and used a GraphQL Yoga server. I can add authorization details to the Authorization tab, which receives the web socket request. Referred to this guide.