Skip to content
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

Update Subscriptions Ellie example using external Phoenix transport code #70

Closed
dillonkearns opened this issue Aug 28, 2018 · 5 comments
Labels

Comments

@dillonkearns
Copy link
Owner

Now that the transport layer code has moved out of dillonkearns/elm-graphql based on #43, we should have an Ellie example linked to in the README to illustrate how this could be done (as this comment points out).

This may have to wait until the elm/websocket package, and perhaps a package for Elm and Phoenix, are published. This package uses long polling with Phoenix as a workaround, but is listed as not being production ready yet so it might be best to hold off for now.

@knewter
Copy link

knewter commented Oct 31, 2018

I'm setting it up right now with @absinthe/socket and ports, might be worth showing that off.

@dillonkearns
Copy link
Owner Author

@knewter yes please! I'd love to get a working example from you, and then I can update the Ellie example to use the same as pattern 👌👌

@knewter
Copy link

knewter commented Nov 1, 2018

I'll release the underlying app open source in the next couple of weeks, but for now here's the general pattern: https://gist.github.com/knewter/6c95a14d03ad038db32f5e5c5852d800

@dillonkearns
Copy link
Owner Author

I am super grateful to you for sharing this, @knewter, thank you! I just got my subscriptions demo from 0.18 working locally. Now I just need to package it up so that I can post it as a live demo. I'll post an update here once I do and close this out 👍

@dillonkearns
Copy link
Owner Author

I published a live demo based on your example @knewter. Thank you so much for the help! I linked to the demo and its source code in the README so I think we can call this done. Please don't hesitate to follow up here or in slack if you have any suggestions for how to make the example or docs better. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants