File tree 5 files changed +28
-19
lines changed
5 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 1
1
(ns taoensso.sente.server-adapters.community.aleph
2
- " Sente server adapter for Aleph,
3
- Ref. <https://github.com/clj-commons/aleph>."
4
2
{:author " Soren Macbeth (@sorenmacbeth)" }
5
3
(:require
6
4
[taoensso.sente.interfaces :as i]
44
42
{:body s})))))
45
43
46
44
(defn get-sch-adapter
47
- " Supports websocket-connection options in `aleph.http`.
48
- If no option map is provided, the default options apply."
45
+ " Returns a Sente `ServerChan` adapter for `Aleph`,
46
+ Ref. <https://github.com/clj-commons/aleph>.
47
+
48
+ Supports websocket-connection options as in `aleph.http`.
49
+ If no options map is provided, the default options apply."
49
50
([ ] (AlephAsyncNetworkChannelAdapter. nil ))
50
51
([opts] (AlephAsyncNetworkChannelAdapter. opts)))
Original file line number Diff line number Diff line change 1
1
(ns taoensso.sente.server-adapters.community.immutant
2
- " Sente server adapter for Immutant v2+,
3
- Ref. <https://github.com/immutant/immutant>."
4
2
{:author " Toby Crawley (@tobias)" }
5
3
(:require
6
4
[taoensso.encore :as enc]
31
29
(fn [sch {:keys [code reason] :as status-map}]
32
30
(on-close sch ws? status-map)))))))
33
31
34
- (defn get-sch-adapter [] (ImmutantServerChanAdapter. ))
32
+ (defn get-sch-adapter
33
+ " Returns a Sente `ServerChan` adapter for `Immutant` v2+,
34
+ Ref. <https://github.com/immutant/immutant>."
35
+ [] (ImmutantServerChanAdapter. ))
35
36
36
37
(enc/deprecated
37
38
(defn ^:deprecated ^:no-doc make-immutant-adapter [_opts] (get-sch-adapter ))
Original file line number Diff line number Diff line change 1
1
(ns taoensso.sente.server-adapters.community.jetty
2
- " Sente adapter for `ring-jetty-adapter`,
3
- Ref. <https://github.com/ring-clojure/ring/tree/master/ring-jetty-adapter>.
4
- Adapted from <https://github.com/taoensso/sente/pull/426#issuecomment-1647231979>."
5
2
{:author " Alex Gunnarson (@alexandergunnarson)" }
6
3
(:require
7
4
[ring.core.protocols :as ring-protocols]
104
101
(ring-response/response (ajax-ch callbacks-map adapter-opts)))))
105
102
106
103
(defn get-sch-adapter
107
- " Returns an Jetty ServerChanAdapter. Options:
108
- `:ajax-resp-timeout-ms` - Max msecs to wait for Ajax responses (default 60 secs)"
104
+ " Returns a Sente `ServerChan` adapter for `ring-jetty-adapter` [1].
105
+ Supports Jetty 11.
106
+
107
+ Options:
108
+ `:ajax-resp-timeout-ms` - Max msecs to wait for Ajax responses (default 60 secs),
109
+ exception thrown on timeout.
110
+
111
+ [1] Ref. <https://github.com/ring-clojure/ring/tree/master/ring-jetty-adapter>."
109
112
([] (get-sch-adapter nil ))
110
113
([{:as opts
111
114
:keys [ajax-resp-timeout-ms]
Original file line number Diff line number Diff line change 1
1
(ns ^:no-doc taoensso.sente.server-adapters.community.nginx-clojure
2
2
; ; `^:no-doc` needed to prevent broken cljdoc build
3
- " Sente server adapter for Nginx-Clojure v0.4.2+.
4
- Ref. <https://github.com/nginx-clojure/nginx-clojure>."
5
3
{:author " Zhang Yuexiang (@xfeep)" }
6
4
(:require
7
5
[taoensso.encore :as enc]
48
46
49
47
{:status 200 :body sch})))
50
48
51
- (defn get-sch-adapter [] (NginxServerChanAdapter. ))
49
+ (defn get-sch-adapter
50
+ " Returns a Sente `ServerChan` adapter for `Nginx-Clojure` v0.4.2+.
51
+ Ref. <https://github.com/nginx-clojure/nginx-clojure>."
52
+ [] (NginxServerChanAdapter. ))
52
53
53
54
(enc/deprecated
54
55
(def ^:deprecated ^:no-doc nginx-clojure-adapter (get-sch-adapter ))
Original file line number Diff line number Diff line change 1
1
(ns taoensso.sente.server-adapters.community.undertow
2
- " Sente server adapter for ring-undertow-adapter,
3
- Ref. <https://github.com/luminus-framework/ring-undertow-adapter>."
4
2
{:author " Nik Peric" }
5
3
(:require
6
4
[ring.adapter.undertow.websocket :as websocket]
89
87
(ajax-ch callbacks-map adapter-opts))}))
90
88
91
89
(defn get-sch-adapter
92
- " Returns an Undertow ServerChanAdapter. Options:
93
- `:ajax-resp-timeout-ms` - Max msecs to wait for Ajax responses (default 60 secs)"
90
+ " Returns a Sente `ServerChan` adapter for `ring-undertow-adapter` [1].
91
+
92
+ Options:
93
+ `:ajax-resp-timeout-ms` - Max msecs to wait for Ajax responses (default 60 secs),
94
+ exception thrown on timeout.
95
+
96
+ [1] Ref. <https://github.com/luminus-framework/ring-undertow-adapter>."
94
97
([] (get-sch-adapter nil ))
95
98
([{:as opts
96
99
:keys [ajax-resp-timeout-ms]
You can’t perform that action at this time.
0 commit comments