Liking cljdoc? Tell your friends :D

lambdaisland.funnel-client.examples.reload

Simple demo funnel client that waits for a :reload? message and then reloads the page. Can be used as a naive way to auto refresh an HTML page like this

watchexec --watch index.html sh -c "echo '{:funnel/broadcast [:type :lambdaisland.funnel-client.examples.reload/reload] :reload? true}' | jet --to transit | websocat ws://localhost:44220"

Simple demo funnel client that waits for a :reload? message and then reloads
the page. Can be used as a naive way to auto refresh an HTML page like this

   watchexec --watch index.html sh -c "echo '{:funnel/broadcast [:type :lambdaisland.funnel-client.examples.reload/reload] :reload? true}' | jet --to transit | websocat ws://localhost:44220"

raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close