Liking cljdoc? Tell your friends :D

taoensso.sente.server-adapters.aleph

Sente server adapter for Aleph (https://github.com/ztellman/aleph).

Sente server adapter for Aleph (https://github.com/ztellman/aleph).
raw docstring

taoensso.sente.server-adapters.dogfort

Sente server adapter for Node.js with Dog Fort (https://github.com/whamtet/dogfort).

Sente server adapter for Node.js with Dog Fort
(https://github.com/whamtet/dogfort).
raw docstring

taoensso.sente.server-adapters.express

Sente server adapter for Node.js with Express (http://expressjs.com/).

This adapter works differently that the others as Sente is expecting Ring requests but Express uses http.IncomingMessage. While most of this adapter could be used for similar implementations there will be assumptions here that the following express middleware (or equivalents) are in place:

  • cookie-parser
  • body-parser
  • csurf
  • express-session
  • express-ws

See the example project at https://goo.gl/lnkiqS for an implementation (it's a bit different than something built on Ring).

Sente server adapter for Node.js with Express (http://expressjs.com/).

This adapter works differently that the others as Sente is
expecting Ring requests but Express uses http.IncomingMessage.
While most of this adapter could be used for similar
implementations there will be assumptions here that the following
express middleware (or equivalents) are in place:
  - cookie-parser
  - body-parser
  - csurf
  - express-session
  - express-ws

See the example project at https://goo.gl/lnkiqS for an
implementation (it's a bit different than something built on Ring).
raw docstring

taoensso.sente.server-adapters.generic-node

Sente server adapter for Node.js using the `ws` and `http` libraries.
Ref. https://github.com/websockets/ws,
     https://nodejs.org/api/http.html,
     https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/,
     https://github.com/theasp/sente-nodejs-example.
raw docstring

taoensso.sente.server-adapters.http-kit

Sente server adapter for http-kit (http://www.http-kit.org/).

Sente server adapter for http-kit (http://www.http-kit.org/).
raw docstring

taoensso.sente.server-adapters.immutant

Sente server adapter for Immutant v2+ (http://immutant.org/).

Sente server adapter for Immutant v2+ (http://immutant.org/).
raw docstring

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

taoensso.sente.server-adapters.macchiato

Sente server adapter for Node.js with the Macchiato Framework (https://macchiato-framework.github.io/).

Sente server adapter for Node.js with the Macchiato Framework
(https://macchiato-framework.github.io/).
raw docstring

taoensso.sente.server-adapters.nginx-clojure

Sente server adapter for Nginx-Clojure v0.4.2+ (http://nginx-clojure.github.io/).

Sente server adapter for Nginx-Clojure v0.4.2+
(http://nginx-clojure.github.io/).
raw docstring

taoensso.sente.server-adapters.undertow

Sente server adapter for ring-undertow-adapter.

Sente server adapter for ring-undertow-adapter.
raw docstring

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

× close