graphql

2021-12-22T17:02:00.102700Z

Hi all, I'm using re-graph and Lacinia and seeing the following error: Firefox can't establish a connection to the server at . Everything works when I initialize re-graph like so:

(re-frame/dispatch
 [::re-graph/init {:ws nil
                   :http {
                          :supported-operations #{:query}
                          :parameters {:with-credentials? false}}}])
but it breaks down if I change this to
(re-frame/dispatch [::re-graph/init {}])
Does this mean that I haven't set up Lacinia properly to use websockets? How can I correct this?

gklijs 2021-12-22T21:58:41.102900Z

Not sure it works the same with the latest version, but this works with subscriptions. https://github.com/gklijs/bkes-demo/blob/b57d3d6c9f73671e61a8fbabaede1abc12667ab7/frontend/src/cljs/nl/openweb/bank/core.cljs#L25

2021-12-22T22:22:47.103200Z

Thanks! I've been poring over your project today actually @gklijs

2021-12-22T22:23:48.103400Z

Let me try that