diff options
author | Clemens Tolboom <clemens@build2be.com> | 2020-02-20 16:19:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 10:19:14 -0500 |
commit | 7e49d96cbcde1e8eb89d0fdd499be473822b725b (patch) | |
tree | 0e1a42625137492a05d1bdbab5fa3d445a76fa18 /std/ws/example_client.ts | |
parent | 6431622a6debc0443f9269fe0157571ec54701c0 (diff) |
/std/ws: Fix args index for WS examples (#4046)
Diffstat (limited to 'std/ws/example_client.ts')
-rw-r--r-- | std/ws/example_client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/ws/example_client.ts b/std/ws/example_client.ts index 53b1a4ed5..664073210 100644 --- a/std/ws/example_client.ts +++ b/std/ws/example_client.ts @@ -9,7 +9,7 @@ import { BufReader } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; import { blue, green, red, yellow } from "../fmt/colors.ts"; -const endpoint = Deno.args[1] || "ws://127.0.0.1:8080"; +const endpoint = Deno.args[0] || "ws://127.0.0.1:8080"; /** simple websocket cli */ const sock = await connectWebSocket(endpoint); console.log(green("ws connected! (type 'close' to quit)")); |