Skip to content

Commit a4cf644

Browse files
committed
[fix] [Undertow adapter] sch-send! is supposed to return true on success
1 parent 728901a commit a4cf644

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/taoensso/sente/server_adapters/undertow.clj

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
i/IServerChan
1919
(sch-open? [sch] (.isOpen sch))
2020
(sch-close! [sch] (.sendClose sch))
21-
(sch-send! [sch websocket? msg] (websocket/send msg sch)))
21+
(sch-send! [sch websocket? msg]
22+
(websocket/send msg sch)
23+
(i/sch-open? sch)))
2224

2325
(extend-protocol response/RespondBody
2426
WebSocketConnectionCallback

0 commit comments

Comments
 (0)