Skip to content

Commit 5115e19

Browse files
committed
merge
2 parents 7fe9606 + 84144f0 commit 5115e19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src-cljs/chatb0x/core.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
(defn send-message [id]
5050
(let [message (.-value (by-id id))]
51-
(.send socket {:msg message :host host :path path})
51+
(.send socket {:message message :host host :path path})
5252
(set! (.-value (by-id id)) nil)
5353
(println "chatb0x sent message:" message)))
5454

@@ -66,6 +66,7 @@
6666

6767
(set! (.-onopen socket)
6868
(fn [event]
69+
(.send socket {:new-path path :new-host host})
6970
(println "WebSocket connected. Destination: " ws-url)))
7071

7172
;; The keys are all ints, so sort them such that :10 > :2

src/chatb0x/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
:credential-fn #(creds/bcrypt-credential-fn @users %)
186186
:workflows [(workflows/interactive-form)]})
187187
; required Ring middlewares
188-
(wrap-verbose) ; log the request map
188+
;;(wrap-verbose) ; log the request map
189189
(wrap-reload)
190190
(wrap-drop-www)
191191
(wrap-keyword-params)

0 commit comments

Comments
 (0)