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