fix
This commit is contained in:
parent
fa9cbf5f12
commit
a724792eb8
|
|
@ -1,3 +1,5 @@
|
|||
export const ipcSend = (
|
||||
msg: { type: "init" } | { type: "ready"; port: number }
|
||||
) => {};
|
||||
) => {
|
||||
process?.send?.(msg);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@ startup("site", async () => {
|
|||
g.server = Bun.serve({
|
||||
fetch(request, server) {},
|
||||
websocket: { message(ws, message) {} },
|
||||
port: 0,
|
||||
});
|
||||
ipcSend({ type: "ready", port: g.server.port });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue