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

9 lines
232 B
Plaintext
Raw Normal View History

2016-01-07 14:49:10 +00:00
(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)))