picture-processor-cljs/dev-src/picture_processor/repl.cljs

9 lines
232 B
Clojure

(ns picture-processor.repl
(:require weasel.repl))
(defn start
"Start the Weasel repl to connect to vim-fireplace"
[port]
(aset js/global "WebSocket" (js/require "ws"))
(weasel.repl/connect (str "ws://localhost:" port)))