This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-23
Channels
- # announcements (2)
- # beginners (246)
- # boot-dev (1)
- # braveandtrue (3)
- # calva (13)
- # cider (26)
- # cljs-dev (6)
- # clojure (75)
- # clojure-finland (4)
- # clojure-germany (39)
- # clojure-italy (1)
- # clojure-mexico (1)
- # clojure-nl (14)
- # clojure-spec (61)
- # clojure-uk (104)
- # clojurescript (125)
- # cursive (20)
- # datomic (1)
- # emacs (2)
- # figwheel-main (91)
- # fulcro (29)
- # graphql (9)
- # jobs (3)
- # jobs-discuss (9)
- # juxt (13)
- # liberator (2)
- # luminus (1)
- # off-topic (15)
- # parinfer (8)
- # re-frame (70)
- # reagent (35)
- # reitit (24)
- # remote-jobs (5)
- # ring-swagger (3)
- # shadow-cljs (127)
- # spacemacs (34)
- # yada (6)
how do I implement graphql subscription with fallback to polling when websocket is not available?
I'm sorry no ones gotten back to you. I built the subscription support on top of Pedestal and made it work like Apollo to the best of my understanding ... but after that, I haven't gone very deep as we are yet to use subscriptions on Walmart (and our byzantine routers and load balancers may get in the way, regardless).
@U04VDKC4G thanks. My approach now is to establish a sente connection and handle the graphql string with executor/invoke-streamer
@U0E2YV1UZ i have a plan for implementing this in re-graph, i don't know if apollo client already supports this
if i understand correctly you are asking about how to make the client behave this way, not the server?
@U076R6N1L I think both client and server must implement something
it's like the library sente but for graphql subscription
The server will need to serve both subscriptions and normal queries, yes, but lacinia-pedestal does this
@U076R6N1L too bad we use Ring and can't switch to pedestal momentarily