Signature: websocketCreateServer(port: Int, address: String, path: String) -> Result<ServerID, String>

Description: Creates a WebSocket server bound to the specified port, address, and path. (Implementation note: currently returns an integer status code; the Result-typed API shown in the signature is planned.)

Parameters

Returns: Result<ServerID, String>

Example

let serverResult = websocketCreateServer(port: 8080, address: "127.0.0.1", path: "/chat")
match serverResult {
    Success serverId => print("WebSocket server created with ID: ${serverId}")
    Err message => print("Failed to create server: ${message}")
}