Skip to content

Allow useServer of ws to supports other subprotocols #582

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

You must be logged in to vote

The graphql-ws library is only to be used for the GraphQL over WebSocket protocol, so supporting other subprotocols makes no sense.

If you want to run multiple WS servers where one handles GraphQL stuff and the other non-GraphQL, you can run multiple WS server instances each handling its duties. Please advise the "ws server usage with subscriptions-transport-ws backwards compatibility" recipe to get an idea on how to run multiple WS servers.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tanlethanh
Comment options

Answer selected by tanlethanh
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
Converted from issue

This discussion was converted from issue #581 on September 30, 2024 08:57.