(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>.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |