Skip to content

Subscriptions on AWS API Gateway Websockets with Serverless and Apollo (GraphQL) #271

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

You must be logged in to vote

graphql-ws's server implementation is actually just a coercing API that can be plugged into any WebSocket server library by using makeServer. Check out the built-ins for ws, uWebSockets and fastify-websocket to get started.

Furthermore, this library is a reference implementation of the GraphQL over WebSocket protocol and is therefore required to have the messages format comply with the protocol; so, no, graphql-ws will not accept messages differing from the protocol.

However, I am aware of two libraries of intereset that aim to integrate the GraphQL over WebSocket protocol on AWS:

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@IonelLupu
Comment options

@IonelLupu
Comment options

@samhatoum
Comment options

@IonelLupu
Comment options

@samhatoum
Comment options

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

This discussion was converted from issue #270 on November 18, 2021 11:45.