diff options
Diffstat (limited to 'std/ws/example_server.ts')
-rw-r--r-- | std/ws/example_server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/ws/example_server.ts b/std/ws/example_server.ts index 982f72412..03adc0a49 100644 --- a/std/ws/example_server.ts +++ b/std/ws/example_server.ts @@ -8,7 +8,7 @@ import { } from "./mod.ts"; /** websocket echo server */ -const port = Deno.args[1] || "8080"; +const port = Deno.args[0] || "8080"; console.log(`websocket server is running on :${port}`); for await (const req of serve(`:${port}`)) { const { headers, conn } = req; |