Skip to content

Commit

Permalink
fix(client): removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
st-vi committed Dec 12, 2023
1 parent fde0f2a commit 0047259
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions WebSocketClient/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ const createWebSocket = (url: string): WebSocket => {
if(connectionText){
displayEditorError( "Could not connect to language server. Reconnecting ...");
}
if(languageClient !== undefined && languageClient.isRunning()){
//languageClient.dispose();
}
setTimeout(() => {
createWebSocket(url);
}, 500);
Expand All @@ -86,24 +83,12 @@ const createWebSocket = (url: string): WebSocket => {

languageClient.start();
reader.onClose(() => {
if(languageClient !== undefined && languageClient.isRunning()){
//languageClient.dispose();
}
setTimeout(() => {
createWebSocket(url);
}, 500);
});
};
/*
webSocket.onclose = () => {
if(languageClient !== undefined && languageClient.isRunning()){
languageClient.dispose();
}
setTimeout(() => {
createWebSocket(url);
}, 500);
}
*/

return webSocket;
};

Expand Down

0 comments on commit 0047259

Please sign in to comment.