Skip to content

Commit

Permalink
Expose which message IDs have not yet been confirmed through getUncon…
Browse files Browse the repository at this point in the history
…firmed()
  • Loading branch information
ronkorving committed Dec 17, 2014
1 parent 7bd085f commit 47677cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# mage-message-stream.js changelog

## v0.1.1
* Expose which message IDs have not yet been confirmed through getUnconfirmed()

## v0.1.0
* Initial Release
* Initial Release
5 changes: 5 additions & 0 deletions http.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ function HttpPollingClient(style, cfg) {
};


this.getUnconfirmed = function () {
return confirmIds.slice();
};


this.abort = function () {
hr.abort();
this.isRunning = false;
Expand Down
5 changes: 5 additions & 0 deletions ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ function WebSocketClient(cfg) {
};


this.getUnconfirmed = function () {
return confirmIds.slice();
};


this.abort = function () {
if (ws) {
ws.onclose = null;
Expand Down

0 comments on commit 47677cd

Please sign in to comment.