enhance(rtc): add schema-version arg to related apis

This commit is contained in:
rcmerci
2025-01-21 15:01:36 +08:00
parent 42afa2f02b
commit bec7835783
12 changed files with 133 additions and 97 deletions

View File

@@ -26,7 +26,7 @@
(m/sp
(let [decoded-message (rtc-schema/data-to-ws-coercer (assoc message :req-id "temp-id"))
message-str (js/JSON.stringify (clj->js (select-keys (rtc-schema/data-to-ws-encoder decoded-message)
["graph-uuid" "ops" "t-before"])))
["graph-uuid" "ops" "t-before" "schema-version"])))
len (.-length (utf8/encode message-str))]
(when (< 100000 len)
(let [{:keys [url key]} (m/? (ws/send&recv ws {:action "presign-put-temp-s3-obj"}))