diff --git a/chat-app/src/index.ts b/chat-app/src/index.ts index a267642..451ee6c 100644 --- a/chat-app/src/index.ts +++ b/chat-app/src/index.ts @@ -14,8 +14,7 @@ const { upgradeWebSocket, websocket } = createBunWebSocket(); app.get("/chat-service", upgradeWebSocket((c) => { return { onOpen(event, ws) { - console.log(ws); - console.log(`Connection established ${event}`); + console.log(`Connection established from ${ws.raw.remoteAddress}`); chatRoom.addListener('message-added', async function (e) { const message = JSON.stringify({