Skip to content

Commit

Permalink
Merge pull request #1 from ronkorving/unconfirmed
Browse files Browse the repository at this point in the history
Expose which message IDs have not yet been confirmed through getUnconfirmed
  • Loading branch information
bjornstar committed Dec 17, 2014
2 parents 7bd085f + cde81fb commit 174968b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mage-message-stream.js",
"repo": "mage/message-stream.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "MAGE's message stream",
"dependencies": {
"component/emitter": "1.1.3",
Expand Down
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 174968b

Please sign in to comment.