An echo server is a simple network application that listens for incoming connections and requests, and then repeats back any data it receives from clients.
To test this example, try sending data to it with Netcat (Linux/MacOS only). For example, in your terminal run: echo 'Hello, Deno!' | nc localhost 8080
const listener = Deno.listen({ port: 8080 });
console.log("listening on 0.0.0.0:8080");
for await (const conn of listener) {
conn.readable.pipeTo(conn.writable);
}
Run this example locally using the Deno CLI:
deno run -N echo_server.ts
Did you find what you needed?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4