I have a hasura server running behind Traefik and configured to require HTTPS/WSS connections. In Chrome the console works correctly, in Safari queries and mutations work but subscriptions don't connect.
@respectTheCode do you see any error in the network tab (of developer console) ? Can you paste the error if any?
Yeah the error is the 301 because it is connecting to ws:// instead of wss://
WebSocket connection to 'ws://graphql.xxx/v1/graphql' failed: Unexpected response code: 301
@respectTheCode We could not reproduce this on our end. The calls via Safari seem to be being made with the wss protocol as expected. Can you confirm if your GraphQL API endpoint is also https

The endpoint is https but it looks like both chrome and safari are connecting to ws://. The difference appears to be that chrome is following the 301 redirect and safari is not.
I am starting the client with hasura console --endpoint https://graphql...

@respectTheCode Thanks for the extra information. I could reproduce this on the CLI console. We'll fix this soon.
Expected behaviour:
If GraphQL endpoint is http, protocols used should be http / ws
If GraphQL endpoint is https, protocols used should be https / wss
Most helpful comment
Yeah the error is the 301 because it is connecting to ws:// instead of wss://
WebSocket connection to 'ws://graphql.xxx/v1/graphql' failed: Unexpected response code: 301