GithubHelp home page GithubHelp logo

Comments (2)

dillonkearns avatar dillonkearns commented on May 18, 2024

Hello Adam, thank you for reporting this! So I am able to connect with Graphqelm.Subscription.Protocol.phoenixAbsinthe with the following setup:

So it looks like I'm on Phoenix 1.3.0, Absinthe-Phoenix 1.4.0, Absinthe 1.4.5.

Here is what my websocket frames look like in the dev tools:
__src_subscription_elm

Could you provide the following information to help debug this? It would be really helpful for me to get better insight into how to support different Phoenix versions:

  • Your Phoenix version
  • A screenshot of your websocket frames from the dev tools window (like mine above)
  • Try changing it to a "1" instead of null in that spot and let me know if that fixes it.
    You can build your own Protocol as pass it in to Subscription.init (just import Graphqelm.Subscription.Protocol exposing (Protocol) and copy paste this code into your file).

Thanks for filing the issue, it's super helpful for working out the kinks on various framework subtleties! And let me know if you have questions on how to use Graphqelm Subscriptions, I'd be happy to help you out on the Elm Slack.

from elm-graphql.

akeating avatar akeating commented on May 18, 2024

Thanks for the detailed reply. So I just spent more time on this:

  1. I realized your example socket url has a query param of vsn=2.0.0 on it and it looks like that is required for an initial response.
  2. The null or "1" in the first position appears to have no obvious effect.

I now have elm <-> phoenix absinthe <-> vuejs subscriptions working. Nice job!

from elm-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.