tcplexer/tcplexer.ts
2022-06-24 19:19:05 -05:00

7 lines
251 B
TypeScript

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