Liking cljdoc? Tell your friends :D
Clojure only.

taoensso.sente.server-adapters.jetty9

Sente adapter for ring-jetty9-adapter, (https://github.com/sunng87/ring-jetty9-adapter).

Note that ring-jetty9-adapter defines WebSocket routes/handlers separately from regular Ring routes/handlers [1,2].

This can make it tricky to set up stateful middleware correctly (for example as you may want to do for CSRF protection).

See [3] for a full example.

[1] https://github.com/sunng87/ring-jetty9-adapter/blob/master/examples/rj9a/websocket.clj [2] https://github.com/sunng87/ring-jetty9-adapter/issues/41#issuecomment-630206233 [3] https://gist.github.com/wavejumper/40c4cbb21d67e4415e20685710b68ea0

Sente adapter for ring-jetty9-adapter,
(https://github.com/sunng87/ring-jetty9-adapter).

Note that ring-jetty9-adapter defines WebSocket routes/handlers
separately from regular Ring routes/handlers [1,2].

This can make it tricky to set up stateful middleware correctly
(for example as you may want to do for CSRF protection).

See [3] for a full example.

[1] https://github.com/sunng87/ring-jetty9-adapter/blob/master/examples/rj9a/websocket.clj
[2] https://github.com/sunng87/ring-jetty9-adapter/issues/41#issuecomment-630206233
[3] https://gist.github.com/wavejumper/40c4cbb21d67e4415e20685710b68ea0
raw docstring

get-sch-adapterclj

(get-sch-adapter)

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

× close