deno.land / std@0.91.0 / examples / echo_server.ts

echo_server.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
// 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);}
std

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉