Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 23, 2024
1 parent 4d83308 commit 8ef05ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions javascript/src/websocket-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class WebsocketRPCConnection {
reconnection_token = null,
timeout = 60,
WebSocketClass = null,
refresh_interval = 2*60*60*1000,
refresh_interval = 2 * 60 * 60 * 1000,
) {
assert(server_url && client_id, "server_url and client_id are required");
this._server_url = server_url;
Expand Down Expand Up @@ -207,14 +207,12 @@ class WebsocketRPCConnection {
if (parsedData.type === "reconnection_token") {
this._reconnection_token = parsedData.reconnection_token;
console.log("Reconnection token received");
}
else{
} else {
console.log("Received message from the server:", parsedData);
}
} else {
this._handle_message(event.data);
}

};

this._websocket.onerror = (event) => {
Expand Down

0 comments on commit 8ef05ab

Please sign in to comment.