Liking cljdoc? Tell your friends :D

taoensso.sente.server-adapters.community.undertow


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.undertow/ajax-read-timeout
                                :data ring-req}))}})
Returns a Sente `ServerChan` adapter for `ring-undertow-adapter` [1].

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/luminus-framework/ring-undertow-adapter>.
source

ISenteUndertowAjaxChannelcljprotocol

ajax-read!clj

(ajax-read! sch)
source

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

× close