Skip to content

Commit

Permalink
Acknowledge all received messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Apr 17, 2017
1 parent b82b98a commit bf9940d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/wsservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ core.service("WsService", function ($interval, $q, AlertService, AuthServiceApi)

if (pendingRequests[requestId]) {
console.info("Response:", requestId, pendingRequests[requestId].request, status);
message.ack({
channel: pendingRequests[requestId].subscription.channel
});
if (status === "REFRESH") {
message.ack({
refresh: pendingRequests[requestId].subscription.channel
});
refreshToken(requestId);
} else if (status === "ERROR") {
// lets reject the errors as the response body with channel added
Expand Down

0 comments on commit bf9940d

Please sign in to comment.