mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 20:36:37 +02:00
✨ Minor improvements on websocket impl.
This commit is contained in:
parent
0cc5c7f7bb
commit
a63aff560f
2 changed files with 58 additions and 54 deletions
|
@ -126,7 +126,7 @@
|
|||
(p/recur))))))))
|
||||
|
||||
(defn- log-error
|
||||
[err]
|
||||
[^Throwable err]
|
||||
(log/error "Unexpected exception on websocket handler:\n"
|
||||
(with-out-str
|
||||
(.printStackTrace err (java.io.PrintWriter. *out*)))))
|
||||
|
@ -143,6 +143,7 @@
|
|||
|
||||
(defn handler
|
||||
[{:keys [user] :as req}]
|
||||
(ws/websocket :handler (partial websocket-handler req)
|
||||
;; :on-error on-error
|
||||
))
|
||||
(ws/websocket
|
||||
{:handler (partial websocket-handler req)
|
||||
:input-buffer-size 64
|
||||
:output-buffer-size 64}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue