Skip to content

Commit 0c44d41

Browse files
committed
fix: use same port for WebSocket and HTTP server instead of port+1
1 parent 44c2367 commit 0c44d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const chatRoute = {
88
handler: async (c) => {
99
// Get the WebSocket port from the environment or use default (port + 1)
1010
const serverPort = parseInt(process.env.PORT || '3000');
11-
const wsPort = serverPort + 1;
11+
const wsPort = serverPort;
1212

1313
return c.json({
1414
status: 'ok',

0 commit comments

Comments
 (0)