summaryrefslogtreecommitdiff
path: root/std/ws/example_client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/ws/example_client.ts')
-rw-r--r--std/ws/example_client.ts2
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)"));