Reapply "feat(core): optional mdns service (#6192)"

This reverts commit 505068d5a6.
This commit is contained in:
Adam
2025-12-26 14:24:44 -06:00
parent 1e2ef07c97
commit b2f45d574f
15 changed files with 234 additions and 112 deletions

View File

@@ -30,7 +30,7 @@ process.on("uncaughtException", (e) => {
let server: Bun.Server<BunWebSocketData>
export const rpc = {
async server(input: { port: number; hostname: string }) {
async server(input: { port: number; hostname: string; mdns?: boolean }) {
if (server) await server.stop(true)
try {
server = Server.listen(input)