commit 08902abf979baa37b1927788eed4eacd7fb9c726 Author: Daniel Flanagan Date: Fri Jun 24 19:19:05 2022 -0500 initial commit diff --git a/tcplexer.ts b/tcplexer.ts new file mode 100644 index 0000000..aea60a0 --- /dev/null +++ b/tcplexer.ts @@ -0,0 +1,6 @@ +import { copy } from "https://deno.land/std@0.145.0/streams/conversion.ts"; +const listener = Deno.listen({ port: 8080 }); +console.log("listening on 0.0.0.0:8080"); +for await (const conn of listener) { + copy(conn, conn).finally(() => conn.close()); +}