kvlt is an HTTP client library which runs on the JVM, Node & in browser, including support for server-sent events and websockets.
Github project page <https://github.com/nervous-systems/kvlt> Documentation & examples <https://nervous.io/doc/kvlt/> *Motivation*: while there exist dual-targeted HTTP clients, Node compatibility doesn't appear to be a concern. Further, related functionality - websockets & server-sent events - isn't available uniformly across clj+cljs, and the Clojurescript implementations are tied to APIs which don't exist on Node out of the box. kvlt uses Aleph <https://github.com/ztellman/aleph> on the JVM, and Google Closure's XHR abstraction <https://developers.google.com/closure/library/docs/xhrio> in Clojurescript, with a third-party Node module providing an XHR implementation when running off-browser. The same pattern is used for websockets/SSE (emulating browser APIs with third-party modules). Responses can be consumed using either promises (via promesa <https://github.com/funcool/promesa>), or core.async, with the latter being used to represent websocket connections/SSE streams. Take care, Moe -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.