initial commit

This commit is contained in:
Daniel Flanagan 2022-06-24 19:19:05 -05:00
commit 08902abf97
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

6
tcplexer.ts Normal file
View file

@ -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());
}