Skip to content

Releases: taoensso/sente

v0.14.0 / 2014 May 16

16 May 08:25
Compare
Choose a tag to compare

Minor, non-breaking update.

  • FIX: WebSocket reconnect exponential backoff wasn't being reset correctly.
  • [#39] FIX: Race condition affecting buffered server>user events (@smichal).
  • NEW: [chsk/uidport-open], [chsk/uidport-close] server-side events generated on a uid connecting/disconnecting (any protocol). As before, you can watch the connected-uids atom for more detailed info.
[com.taoensso/sente "0.14.0"]

v0.13.0 / 2014 May 8

08 May 13:12
Compare
Choose a tag to compare

This is a major release focused on simpler out-the-box setup + easier integration with a wide range of login/auth types. Please see the example project for clarification on anything below.

  • BREAKING: API fns removed: chsk-type, chsk-open?.
  • BREAKING: The [:chsk/state] event form has changed for added flexibility.
  • NEW: Added watchable, read-only :state atom to client-side make-channel-socket! fn result. Among other things, this atom contains any user-id provided by the server.
  • NEW: It is now possible to push server>user async events to clients without a user-id by providing a nil user-id to the server-side chsk-send! fn (previously nil uids would throw an assertion error). In particular, this means it's now possible to broadcast to users that aren't logged in.
  • NEW: Server-side make-channel-socket! fn has picked up a :csrf-token-fn option which defaults to compatibility with the Ring-Anti-Forgery middleware.
  • NEW: Clients are now entirely self configuring. It's no longer necessary to transfer any state (like csrf-token or user-id) from the server; this'll be done automatically on channel socket handshake.
  • NEW: Added a chsk-reconnect! API method that can be called to easily re-establish a channel socket connection after a login or auth change. An example login procedure has been added to the reference example project.
  • CHANGE: The example project now randomly selects :ajax or :auto connection mode.

As always, feedback welcome on any changes here. Have fun, cheers! - Peter

[com.taoensso/sente "0.13.0"]

v0.12.0 / 2014 May 1

01 May 06:31
Compare
Choose a tag to compare
  • NEW: server- and client-side start-chsk-router-loop! fns now return a (fn stop! []).
  • [#37] FIX broken [:chsk/close] typo for Ajax connections (@sritchie).
[com.taoensso/sente "0.12.0"]

v0.11.0 / 2014 Apr 26

26 Apr 15:43
Compare
Choose a tag to compare
  • CHANGE: Removed vestigial server-side events: [:chsk/uidport-open _], [:chsk/uidport-close _].
  • CHANGE: Significantly improved Ajax broadcast performance by interally making use of connected-uids data.
  • NEW: [:chsk/close] event can now be sent to clients to disconnect them (this feature was previously experimental + undocumented).
  • FIX: connected-uids was incorrectly marking multi-client users as disconnected when any one of their clients disconnected.
[com.taoensso/sente "0.11.0"]

v0.10.1 / 2014 Apr 17

17 Apr 14:08
Compare
Choose a tag to compare
[com.taoensso/sente "0.10.1"]

v0.10.0 / 2014 Apr 17

17 Apr 10:56
Compare
Choose a tag to compare
  • BREAKING CHANGE: ClojureScript (client-side) make-channel-socket! fn signature has changed:
;; OLD (note two opts maps):
(make-channel-socket! {:csrf-token "foo" :has-uid? true} {:type :auto}) ; Old
;; NEW (note single opts map):
(make-channel-socket! {:csrf-token "foo" :has-uid? true :type :auto}) ; New
  • [#22] NEW: Server-side make-channel-socket! constructor now supports an optional :user-id-fn (fn [ring-req]) -> user-id setting (@sritchie).
  • [#23] NEW: Server-side make-channel-socket! now returns a :connected-uids atom.
[com.taoensso/sente "0.10.0"]

v0.9.0 / 2014 Mar 29

29 Mar 17:44
Compare
Choose a tag to compare

This is a non-breaking release focused on efficiency+reliability improvements for very high stress environments.

  • Documentation improvements.
  • CHANGE: server>user Ajax push is now more reliable against dodgy connections.
  • NEW: server>user sends are now automatically+transparently batched for greater efficiency in very high throughput environments. The server-side make-channel-socket! has picked up some knobs for this, but the defaults are sensible.
[com.taoensso/sente "0.9.0"]

v0.8.2 / 2014 Mar 7

29 Mar 17:54
Compare
Choose a tag to compare
  • NEW: Copy improved error messages to server-side API.
  • CHANGE: Provide entire, unfiltered Ring request map to server-side API.
[com.taoensso/sente "0.8.2"]

v0.8.1 / 2014 Mar 4

29 Mar 17:46
Compare
Choose a tag to compare
  • NEW: Improved error messsages for malformed events.
[com.taoensso/sente "0.8.1"]

v0.8.0 / 2014 Feb 24

29 Mar 17:46
Compare
Choose a tag to compare
  • NEW: Initial public release.
[com.taoensso/sente "0.8.0"]