Skip to content

Commit

Permalink
Fix keep-alive message ping
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed May 28, 2024
1 parent b9ba8e9 commit 121e2bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gptscript-operator",
"version": "0.1.1",
"version": "0.1.2",
"main": "index.js",
"license": "MIT",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/ChatHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class ChatHandler {
console.log('Received ping from client');
// Optionally, send a pong response
ws.send(JSON.stringify({ type: 'pong' }));
} else {
await this.handleMessage(ws, parsedMessage);
}

await this.handleMessage(ws, parsedMessage);
});

ws.on('close', () => {
Expand Down

0 comments on commit 121e2bb

Please sign in to comment.