feat: append command

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-06-23 15:13:42 -04:00
parent c8f0f8328b
commit 3dd9c2f983
5 changed files with 155 additions and 8 deletions
+8 -3
View File
@@ -42,9 +42,14 @@ final class CommandExecutor
$frame = $command->encode($tag, $context);
$this->writer->write($tag, $frame);
return $command->handle(new ResponseStream(function () use ($tag, $context): Generator {
yield from $this->processPerform($tag, $context);
}), $context);
return $command->handle(new ResponseStream(
function () use ($tag, $context): Generator {
yield from $this->processPerform($tag, $context);
},
function (string $payload): void {
$this->writer->writeRaw($payload);
},
), $context);
}
/**