[Server] Add Bidirectional Client Communication Support (#109)

* feat(server): add bidirectional client communication support

* fix(server): use correct session ID string conversion method

* fix: clean up docblocks for request handler methods in Builder

* fix: merge artifacts
This commit is contained in:
Kyrian Obikwelu 2025-10-26 22:48:17 +01:00 • committed by GitHub
commit f1b471a219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ final class Builder
private ?string $instructions = null;
/**
* @var array<int, RequestHandlerInterface>
* @var array<int, RequestHandlerInterface<mixed>>
*/
private array $requestHandlers = [];
@ -176,6 +176,8 @@ final class Builder
/**
* Register a single custom method handler.
*
* @param RequestHandlerInterface<mixed> $handler
*/
public function addRequestHandler(RequestHandlerInterface $handler): self
{
@ -187,7 +189,7 @@ final class Builder
/**
* Register multiple custom method handlers.
*
* @param iterable<int, RequestHandlerInterface> $handlers
* @param iterable<RequestHandlerInterface<mixed>> $handlers
*/
public function addRequestHandlers(iterable $handlers): self
{