summaryrefslogtreecommitdiff
path: root/src/ircd.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ircd.js')
-rw-r--r--src/ircd.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ircd.js b/src/ircd.js
new file mode 100644
index 0000000..affc986
--- /dev/null
+++ b/src/ircd.js
@@ -0,0 +1,16 @@
+const net = require("node:net");
+
+const server = net.createServer(socket => {
+ socket.write("olar\r\n");
+ socket.pipe(socket);
+});
+
+const app = udsPath => {
+ server.listen(udsPath, () => {
+ console.log("I'm ircd.");
+ });
+};
+
+module.exports = {
+ app,
+};