Skip to content

Commit

Permalink
Merge pull request #7 from centrifugal/refactor_events_and_error_hand…
Browse files Browse the repository at this point in the history
…ling

Refactor events API, subscription methods and error handling
  • Loading branch information
FZambia committed Jan 19, 2016
2 parents 04ead32 + 57b80d7 commit dc88a02
Show file tree
Hide file tree
Showing 7 changed files with 1,356 additions and 2,183 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
1.3.0
=====

**Client API completely refactored in this release**. You can still use previous versions
to communicate with Centrifugo server from browser environment but new implementation much
more comfortable to use in our opinion and will be supported in future releases so consider
upgrading!

Highlights of this release:

* automatic resubscribe, no need to subscribe manually in `connect` event handler
* more opaque error handling
* drop support for SockJS < 1.0.0 (but if you still use SockJS 0.3.4 then feel free to open
issue and we will return its support to client)

Please, read [new documentation](https://fzambia.gitbooks.io/centrifugal/content/clients/javascript.html)
for Javascript browser client.

Also, DOM plugin was removed from repository as new client API design solves most of problems
that DOM plugin existed for - i.e. abstracting subscribe on many channels and automatically
resubscribe on them. With new client you can have one global connection to Centrifugo and
subscribe on channels at any moment from any part of your javascript code.

If you are searching for old API docs (`centrifuge-js` <= 1.2.0) - [you can find it here](https://github.com/centrifugal/documentation/tree/c69ca51f21c028a6b9bd582afdbf0a5c13331957/client)

1.2.0
=====

Expand Down
1,567 changes: 665 additions & 902 deletions centrifuge.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion centrifuge.min.js

Large diffs are not rendered by default.

105 changes: 0 additions & 105 deletions plugins/centrifuge-dom/README.rst

This file was deleted.

Loading

0 comments on commit dc88a02

Please sign in to comment.