Skip to content

Commit

Permalink
Handling websocket protocol error at server (when clientID not found)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 authored Apr 4, 2024
1 parent 5545ba6 commit fcc75a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geppetto-client/js/communication/MessageSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ define(function (require) {
GEPPETTO.MessageSocket.socketStatus = GEPPETTO.Resources.SocketStatus.CLOSE;
GEPPETTO.CommandController.log(GEPPETTO.Resources.WEBSOCKET_CLOSED, true);
break;
case 1002:
GEPPETTO.MessageSocket.socketStatus = GEPPETTO.Resources.SocketStatus.CLOSE;
GEPPETTO.CommandController.log(GEPPETTO.Resources.WEBSOCKET_CLOSED, true);
break;
default:
if (GEPPETTO.MessageSocket.lostConnectionId === undefined) {
GEPPETTO.MessageSocket.lostConnectionId = GEPPETTO.MessageSocket.getClientID();
Expand Down

0 comments on commit fcc75a4

Please sign in to comment.