hugehasem.blogg.se

Go sente
Go sente








go sente

Note that there's also a variety of full example projects availableĪdd the necessary dependency to your project: It's simple, and exposes the best of both WebSockets (bidirectionality + performance) and Ajax (optional evented ack/reply model).

go sente

So you can ignore the underlying protocol and deal directly with Sente's unified API. Supported servers: http-kit, Immutant v2+, nginx-clojure, node.js, Aleph, ring-jetty9-adapter.Small codebase: ~1.5k lines for the entire client+server implementation.Standard Ring security model: auth as you like, HTTPS when available, CSRF support, etc.Flexible model: use it anywhere you'd use WebSockets/Ajax/Socket.IO, etc.Realtime info on which users are connected over which protocols (v0.10.0+).Automatic, sensible support for users connected with multiple clients and/or devices simultaneously.

go sente

Tiny API: make-channel-socket! and you're good to go.Send arbitrary Clojure vals over edn or Transit (JSON, MessagePack, etc.).transparent event batching for low-bandwidth use, even over Ajax It just works: auto keep-alives, buffering, protocol selection, reconnects.Bidirectional a/sync comms over both WebSockets and Ajax (auto-fallback).(I'd also recommend checking out James Henderson's Chord and Kevin Lynagh's jetty7-websockets-async as possible alternatives!) Features Sen-te (先手) is a Japanese Go term used to describe a play with such an overwhelming follow-up that it demands an immediate response, leaving its player with the initiative. Sente is a small client+server library that makes it easy to build reliable, high-performance realtime web applications with Clojure + ClojureScript. Or: core.async + Ajax + WebSockets = The Shiznizzle See here if you're interested in helping support my open-source work, thanks! - Peter Taoussanis Sente: realtime web comms for Clojure/Script










Go sente