sendConsoleOutput method

void sendConsoleOutput(
  1. String? message
)

Sends an OutputEvent with a trailing newline to the console.

This method sends output directly and does not go through sendOutput because that method is async and queues output. Console output is for adapter-level output that does not require this and we want to ensure it's sent immediately (for example during shutdown/exit).

Implementation

void sendConsoleOutput(String? message) {
  sendEvent(OutputEventBody(output: '$message\n'));
}