Skip to content

Commit

Permalink
Add javascript frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirotomas1904 committed Nov 20, 2023
1 parent 4c3799b commit e24af65
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/frontend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const net = require("node:net");
const { argv } = require("node:process");

const PORT = 8891;

if (argv[2]) {
const socket = net.createConnection(PORT, "localhost", () => {
socket.write(argv[2], "utf8");
});
}

0 comments on commit e24af65

Please sign in to comment.