Giter VIP home page Giter VIP logo

Comments (6)

bruce avatar bruce commented on July 20, 2024

These are known issues, and I agree with you on the promises. Seemed like such a good idea at the time.

There is probably not going to be a lot of headway made on solving them here until ElixirConf, due to time constraints for Ben and I; most people seem to be using phoenix-websocket-apollo in practice (which is a completely different implementation and likely handles this) and I know @tlvenn is actively working on putting together a Relay-supporting package.

We really do need a vanilla package like this, however, and I would welcome any assistance to make this more solid.

from absinthe-phoenix-js.

tlvenn avatar tlvenn commented on July 20, 2024

The relay solution we have use this project underneath as I believe it would be better to factor the protocol on how a given channel is being used between absinthe server/client is one place.

I agree with the sentiment regarding promises in this use case and we should aim to return observables just the same way as subscriptions-transport-ws is now dealing with this.

It's probably something we can work on and contribute back @bruce. Let me check with the team and report back.

from absinthe-phoenix-js.

bruce avatar bruce commented on July 20, 2024

@tlvenn Thank you, that would be very helpful!

from absinthe-phoenix-js.

akeating avatar akeating commented on July 20, 2024

I too have been contemplating a fundamental refactor that aligns with subscriptions-transport-ws. That api looks very useful. Trouble is, I am tempted to refactor the phoenix socket lib to surface parts of it, such as reconnecting, reconnected, et al. I believe this would result in a better implementation, but at the cost of taking on and maintaining compatibility with phoenix. It might be possible to carefully wrap the phoenix lib and at the cost of complexity further up the stack.

from absinthe-phoenix-js.

bruce avatar bruce commented on July 20, 2024

@akeating @tlvenn's team has also been looking at a pretty fundamental refactor hereโ€“โ€“may want to review what he's doing as well. @tlvenn, when do you think we can take a peek?

from absinthe-phoenix-js.

tlvenn avatar tlvenn commented on July 20, 2024

@bruce Hopefully tomorrow, I will keep you posted.

from absinthe-phoenix-js.

Related Issues (2)

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.