Skip to content

More info in CloseCode.SubprotocolNotAcceptable situations? #339

Answered by enisdenjo
theogravity asked this question in Q&A
Discussion options

You must be logged in to vote

Some of your clients are trying to connect without specifying a subprotocol, while the required subprotocol is "graphql-transport-ws".

I've added that log so that people transitioning from subscriptions-transport-ws are aware that this lib is not cross-compatible. Maybe I should console log exclusively if the deprecated subprotocol is detected? Starting from v5.6.4, server integrations warn only when detecting subscriptions-transport-ws clients.

The log comes from here and can be disabled by running the server in production mode (export NODE_ENV=production).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@theogravity
Comment options

@enisdenjo
Comment options

Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants