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 3b1c6a33a..d680c6fef 100644
--- a/std/ws/example_client.ts
+++ b/std/ws/example_client.ts
@@ -31,7 +31,7 @@ const tpr = new TextProtoReader(new BufReader(Deno.stdin));
while (true) {
await Deno.stdout.write(encode("> "));
const line = await tpr.readLine();
- if (line === Deno.EOF) {
+ if (line === null) {
break;
}
if (line === "close") {