Skip to content

How do I send websocket message from the client? #294

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

You must be logged in to vote

You cannot. graphql-ws is in control over the message transport. You can only subscribe.

Even if you could send a custom message (like the one from your example), a GraphQL over WebSocket compliant server would terminate the connection immediately since invalid messages are considered fatal.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dulguun0225
Comment options

@enisdenjo
Comment options

@dulguun0225
Comment options

Answer selected by dulguun0225
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