Skip to content

Commit 93b458b

Browse files
committed
fix http issue
1 parent c6ea305 commit 93b458b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,11 @@ async function mainSse()
5656
const PORT = process.env.PORT || 3001;
5757

5858
const server = app.listen(PORT, () => {
59-
console.log(`✅ Server is running at http://localhost:${PORT}`);
59+
//console.log(`✅ Server is running at http://localhost:${PORT}`);
6060
});
6161

6262
server.on('upgrade', (request, socket, head) => {
63-
console.log(request.headers.host);
64-
console.log(request.url);
6563
  const pathname = new URL(request.url!, `http://${request.headers.host}`).pathname;
66-
console.log(pathname);
6764
  if (pathname === '/ws') {
6865
    wss.handleUpgrade(request, socket, head, (ws) => {
6966
      wss.emit('connection', ws, request);

0 commit comments

Comments
 (0)