-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Irmin graphql subscriptions #598
Conversation
This looks great! @samoht just merged my We're preparing for an irmin release soon, so will have to hold off on merging this until the upstream changes have been published to opam. Definitely keep us updated as things progress, but I will also watch out for the |
Ah, great -- I'll rebase 😄
Sure, will do. Merging this depends on both a new release of |
f1777c5
to
47170ff
Compare
I've updated this PR to be the minimal patch to support websocket based subscriptions based on andreas/ocaml-graphql-server#133. While making these changes, I noted that having |
Thanks! Yeah, I was looking at your code and like how simple the interface is using only |
47170ff
to
c140a62
Compare
I've rebased on #599 now. |
c140a62
to
c23ad75
Compare
c23ad75
to
a6e0617
Compare
Travis passes for
|
/cc @dinosaure seems that we are double-linking digestif. |
@andreas is there any library where we are using |
Ah this makes sense. I've specified Thanks! |
This PR updates(no longer necessary)irmin-graphql
to usegraphql-cohttp
. This change should happen regardless, asgraphql_lwt
no longer includes a HTTP server.This PR adds the ability to watch the entire store or a specific key with notifications delivered via the GraphQL subscription mechanism (currently only websockets, possibly Server-Sent Events or chunked HTTP responses in the future).
Adding
Irmin_unix.set_listen_dir_hook ()
tocli.ml
may be required...graphql
0.9.0 (PR)/cc @zshipko