absinthe-graphql / absinthe-phoenix-js Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED: JavaScript package supporting Absinthe GraphQL subscriptions over Phoenix channels
License: MIT License
DEPRECATED: JavaScript package supporting Absinthe GraphQL subscriptions over Phoenix channels
License: MIT License
If so, what to use instead?
I'm thinking about using it with absinthe 1.4.0-rc.3
.
Thanks
Thanks for putting this together. I notice absinthe-phoenix-js
relies on the phoenix Socket
lib, layering on subscriptions. The main methods return promises (connect
, subscribe
, unsubscribe
). These promises are resolved or rejected based on callback handlers which may fire multiple times. For example, socket.onOpen
can fire more than once, re-executing an attempt to create a channel. The underlying behavior causing this is retry/rejoin. Once opened, Socket
will attempt to reconnect and rejoin. If the server connection is terminated, Socket
will retry/rejoin for you. onClose
, onOpen
and friends can fire more than once. I would argue that the use of promises are not really a good fit when used on this manner. That said, promises are definitely useful and they could be implemented without directly relying on the callbacks. This lib could also attempt to resubscribe on rejoin. Wondering whether these are known issues and if there is already an effort underway to solve them?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.