Signature: websocketServerBroadcast(serverID: Int, message: String) -> Result<Success, String>

Description: Broadcasts a message to all connected WebSocket clients. (Implementation note: currently returns an integer status code; the Result-typed API shown in the signature is planned.)

Parameters

Returns: Result<Success, String>

Example

let broadcastResult = websocketServerBroadcast(serverID: serverId, message: "Welcome to Osprey Chat!")
match broadcastResult {
    Success _ => print("Message broadcasted to all clients")
    Err message => print("Failed to broadcast: ${message}")
}