Merge branch 'master' into refactor/plugin-api-properties

This commit is contained in:
Tienson Qin
2025-10-15 21:14:39 +08:00
2 changed files with 8 additions and 1 deletions

View File

@@ -42,7 +42,7 @@
logseq/shui {:local/root "deps/shui"}
metosin/malli {:mvn/version "0.16.1"}
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
missionary/missionary {:mvn/version "b.44"}
missionary/missionary {:mvn/version "b.46"}
meander/epsilon {:mvn/version "0.0.650"}
io.github.open-spaced-repetition/cljc-fsrs {:git/sha "eeef3520df664e51c3d0ba2031ec2ba071635442"

View File

@@ -202,3 +202,10 @@
(let [req-id (str (random-uuid))
message (assoc message :req-id req-id)]
(m/? (send&recv* mws message :timeout-ms timeout-ms)))))
(comment
(defn- inject-fake-message-to-recv
"Debug fn.
use `queryObjects(WebSocket)` to fetch all websocket objs under db-worker.js context"
[ws fake-message-to-recv]
(.dispatchEvent ws (js/MessageEvent. "message" #js {:data fake-message-to-recv}))))