summaryrefslogtreecommitdiff
path: root/src/ircd.js
blob: affc986581ad8e64df8b54e26d6a8f7c910c976b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
};