Liking cljdoc? Tell your friends :D

taoensso.sente.server-adapters.community.jetty


get-sch-adapterclj

(get-sch-adapter)
(get-sch-adapter {:as opts
                  :keys [ajax-resp-timeout-ms on-ajax-resp-timeout]
                  :or {ajax-resp-timeout-ms (* 60 1000)
                       on-ajax-resp-timeout
                         (fn [sch ring-req]
                             (trove/log!
                               {:level :warn
                                :id :sente.server.jetty/ajax-read-timeout
                                :data ring-req}))}})
Returns a Sente `ServerChan` adapter for `ring-jetty-adapter` [1].
Supports Jetty 11, 12.

Options:
     `:ajax-resp-timeout-ms` - Max msecs to wait for Ajax responses (default 60 secs)
  `:on-ajax-resp-timeout`    - (fn [ServerChan ring-req]) to trigger after above timeout (logs by default)

[1] Ref. <https://github.com/ring-clojure/ring/tree/master/ring-jetty-adapter>.
source

ISenteJettyAjaxChannelcljprotocol

ajax-read!clj

(ajax-read! sch)
source

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

× close