picture-processor-cljs/dev-src/picture_processor/repl.cljs
2016-01-07 09:49:10 -05:00

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)))