summaryrefslogtreecommitdiff
path: root/std/examples/echo_server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/echo_server.ts')
-rw-r--r--std/examples/echo_server.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/std/examples/echo_server.ts b/std/examples/echo_server.ts
deleted file mode 100644
index 03e0d6070..000000000
--- a/std/examples/echo_server.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-const hostname = "0.0.0.0";
-const port = 8080;
-const listener = Deno.listen({ hostname, port });
-console.log(`Listening on ${hostname}:${port}`);
-for await (const conn of listener) {
- Deno.copy(conn, conn);
-}