From 30bcf6a2ea620aa989a7362e7f4a62fc11743bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 24 Mar 2020 17:24:58 +0100 Subject: Revert "avoid using same port number for test (#4147)" Ref #4467 This reverts commit 60cee4f045778777a16b6fffd6d5b9a1400d7246. --- std/examples/chat/server.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'std/examples/chat/server.ts') diff --git a/std/examples/chat/server.ts b/std/examples/chat/server.ts index d28f9f43f..08aede05b 100644 --- a/std/examples/chat/server.ts +++ b/std/examples/chat/server.ts @@ -29,9 +29,7 @@ async function wsHandler(ws: WebSocket): Promise { } } -const addr = Deno.args[0] ?? "127.0.0.1:8080"; - -listenAndServe(addr, async req => { +listenAndServe({ port: 8080 }, async req => { if (req.method === "GET" && req.url === "/") { //Serve with hack const u = new URL("./index.html", import.meta.url); @@ -77,4 +75,4 @@ listenAndServe(addr, async req => { } } }); -console.log(`chat server starting on ${addr}....`); +console.log("chat server starting on :8080...."); -- cgit v1.2.3