Hey. Is there a way to use Electric in a Clojure client, e.g. a desktop app using JavaFX? I guess I can integrate a web view in JavaFX and load an Electric client in there maybe.
JavaFX uses an old version of WebKit. Expect low performance and rendering issues depending on your use case
I would use: • Electron • Saucer bindings (https://github.com/saucer/saucer) • clj-cef In order from least to more work
thanks!
Maybe like this https://univalence.io/blog/drafts/shadow-cljfx/
JVM server JVM client, i dont know, my best guess is it will require a week or two of integration work on our part
certainly it can work in principle
what would the steps roughly look like? is the biggest chunk of work mapping the dom?
• map the javafx lifecycle into electric. Mount, unmount, update, rotate if that exists (like insertBefore in browsers) • build a TCP network server/client bridge. Today we only have websocket • test server=jvm/client=jvm setup. Electric is largely prepared for this but we never deployed this configuration so there's bound to be some rough edges