diff options
author | EuAndreh <eu@euandre.org> | 2024-03-25 06:42:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-03-25 06:44:18 -0300 |
commit | 077b81b2bd2c0d418635b265b35f582d68cec16a (patch) | |
tree | ed3c928ea3b1d5df539b6e1902ab418caa937672 /src/ircd.mjs | |
parent | src/hero.mjs: Retire code (diff) | |
download | papod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.gz papod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.xz |
Node.js -> Go
Diffstat (limited to 'src/ircd.mjs')
-rw-r--r-- | src/ircd.mjs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ircd.mjs b/src/ircd.mjs deleted file mode 100644 index 1924350..0000000 --- a/src/ircd.mjs +++ /dev/null @@ -1,19 +0,0 @@ -import fs from "node:fs"; -import net from "node:net"; - -import * as hero from "./hero.mjs"; - - -const server = net.createServer(socket => { - socket.write("olar\r\n"); - socket.pipe(socket); -}); - -export const app = async path => { - if (fs.existsSync(path)) { - fs.unlinkSync(path); - } - server.listen(path, () => { - hero.log.info({ type: "starting-server", path }); - }); -}; |