(on-command _
{topic :id
proto :proto
data :data
close :close
:or {data {} close false proto :push}})
(quietly & body)
Execute the body and return nil if there was an error
Execute the body and return nil if there was an error
(websocket-handler
{:keys [exception-handler encoding encoder decoder middleware
target-utilization max-threads]
:or {encoding :edn
middleware []
target-utilization 0.8
max-threads 200
exception-handler
(fn [exception]
(if-some
[handler (Thread/getDefaultUncaughtExceptionHandler)]
(.uncaughtException handler (Thread/currentThread) exception)
(.printStackTrace exception)))}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close