Skip to content

Commit

Permalink
Update stomp-websocket.js (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
0aix authored Feb 18, 2021
1 parent 8c36a62 commit c9da608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/stomp-websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class StompWebsocketService extends Service {
let { type, content } = JSON.parse(payload.body);
if (!isEqual(type, ACK_TYPE)) {
if (isEqual(type, COMPLETE_TYPE) || isEqual(type, FAIL_TYPE)) {
this.client = null;
this.disconnect();
}
handlers.message(JSON.parse(content), context);
}
Expand Down

0 comments on commit c9da608

Please sign in to comment.