Add worker-repl fn

pull/10839/head
Tienson Qin 2024-01-10 17:23:38 +08:00
parent 9ee04feeb5
commit ec39bf0628
1 changed files with 6 additions and 0 deletions

View File

@ -10,3 +10,9 @@
[]
(api/watch :electron)
(api/repl :electron))
;; Get the runtime id from http://localhost:9630/runtimes, pick the one which shows `browser-worker`
(defn worker-repl
[runtime-id]
(assert runtime-id "runtime-id shouldn't be empty")
(api/repl :app {:runtime-id runtime-id}))