Liking cljdoc? Tell your friends :D

websocket-layer.network


*decoder*clj

source

*encoder*clj

source

*exception-handler*clj

source

*executor*clj

source

handle-exceptionclj

(handle-exception e)
source

insignificant?clj

(insignificant? e)
source

on-bytesclj

(on-bytes ws bites offset len)
source

on-closeclj

(on-close _ _ _)
source

on-commandclj

(on-command _
            {topic :id
             proto :proto
             data :data
             close :close
             :or {data {} close false proto :push}})
source

on-connectclj

(on-connect ws)
source

on-errorclj

(on-error _ e)
source

on-textclj

(on-text ws message)
source

quietlycljmacro

(quietly & body)

Execute the body and return nil if there was an error

Execute the body and return nil if there was an error
sourceraw docstring

safe-futurecljmacro

(safe-future & body)
source

send-message!clj

(send-message! ws data)
source

websocket-handlerclj

(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)))}})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close