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

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.");
	});
};