Comments (6)
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.
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.
@tlvenn Thank you, that would be very helpful!
from absinthe-phoenix-js.
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.
@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.
@bruce Hopefully tomorrow, I will keep you posted.
from absinthe-phoenix-js.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from absinthe-phoenix-js.