Skip to content

Commit

Permalink
[new] [#342] Smarter Ajax XHR acquisition, opt to control pool
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Mar 7, 2023
1 parent 76b8abc commit ddde20d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/taoensso/sente.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@
:timeout-ms (or (:timeout-ms ajax-opts)
default-client-side-ajax-timeout-ms)
:resp-type :text ; Prefer to do our own pstr reading
:xhr-cb-fn (fn [xhr] (reset! curr-xhr_ xhr))
:params
(merge
;; Note that user params here are actually POST
Expand Down Expand Up @@ -1694,7 +1695,8 @@
:headers ; Map of additional headers to include in the initiating request
; (currently only for Java clients).
:packer ; :edn (default), or an IPacker implementation.
:ajax-opts ; Base opts map provided to `taoensso.encore/ajax-lite`.
:ajax-opts ; Base opts map provided to `taoensso.encore/ajax-lite`, see
; relevant docstring for more info.
:wrap-recv-evs? ; Should events from server be wrapped in [:chsk/recv _]?
; Default false for Sente >= v1.18, true otherwise.
Expand Down

0 comments on commit ddde20d

Please sign in to comment.