summaryrefslogtreecommitdiff
path: root/src/ircd.mjs
blob: af4d2801368d6a14635bae5d82979725d588cba9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import net from "node:net";

const server = net.createServer(socket => {
	socket.write("olar\r\n");
	socket.pipe(socket);
});

export const app = async udsPath => {
	await db.init();
	server.listen(udsPath, () => {
		console.log("I'm ircd.");
	});
};