Skip to content

Commit c9da608

Browse files
authored
Update stomp-websocket.js (#99)
1 parent 8c36a62 commit c9da608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/stomp-websocket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class StompWebsocketService extends Service {
3939
let { type, content } = JSON.parse(payload.body);
4040
if (!isEqual(type, ACK_TYPE)) {
4141
if (isEqual(type, COMPLETE_TYPE) || isEqual(type, FAIL_TYPE)) {
42-
this.client = null;
42+
this.disconnect();
4343
}
4444
handlers.message(JSON.parse(content), context);
4545
}

0 commit comments

Comments
 (0)