Closed DrYSG closed 4 years ago
Subscriptions are exposed via websockets following the protocol described in apollographql/subscriptions-transport
. I'm not sufficiently familiar with ReWeb to give advice about that, but you can see the websocket handler code here for graphql-cohttp
.
Closing this for now... please re-open if you have further questions 😄
I see in your documentation how the schema is defined for subscriptions, but what transport are you doing subscriptions over? WebSockets? If I wanted to hook your code up with ReWeb, where would I look to do this?
more specifically, when I look at examples/server.ml I see a cohttp_lwt server, but I don't see how it is doing websockets for subscriptions.