Send a kill signal to the running command (SIGKILL).
The server kills the entire process group. The stream will subsequently yield an exit message with a non-zero exit code.
Has no effect if the command has already exited or the WebSocket connection is closed.
kill(
self,
) -> None