Broadcast messages can be issued directly from the server instance (io) to rooms without requiring a client sender.
1// 1. Broadcast to a specific room (includes all local and cluster members)1io.to("notifications:all").emit("system.announcement", {1 title: "Scheduled Maintenance",1 startsAt: Date.now() + 36000001});11// 2. Broadcast to all members in a room, optionally excluding a specific connection ID1io.emitToRoom("project:42", "task.updated", { taskId: 101 }, socket.id);