Send a command to the monitor WebSocket endpoint and collect messages.
- Return type:
list[MonitorMessage]
- Parameters:
- command
dict[str, Any] Command payload to send over the WebSocket connection.
- max_messages
int or None, optional Maximum number of response messages to collect. The default is
1.
- Returns:
list[MonitorMessage]List of messages received in response to the command.