diff options
Diffstat (limited to 'std/examples/chat/server.ts')
-rw-r--r-- | std/examples/chat/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/chat/server.ts b/std/examples/chat/server.ts index a86ed737a..cb1be530e 100644 --- a/std/examples/chat/server.ts +++ b/std/examples/chat/server.ts @@ -18,7 +18,7 @@ async function wsHandler(ws: WebSocket): Promise<void> { const id = ++clientId; clients.set(id, ws); dispatch(`Connected: [${id}]`); - for await (const msg of ws.receive()) { + for await (const msg of ws) { console.log(`msg:${id}`, msg); if (typeof msg === "string") { dispatch(`[${id}]: ${msg}`); |