final | |
|---|---|
readonly | |
implements |
MessageDispatcherInterface |
Server-side per-envelope inbound dispatch. Parses, classifies, gates, resolves a handler, spawns a coroutine to run it, and sends the response (or error) on the transport.
| Methods | ||
|---|---|---|
public
|
__construct(
HandlerRegistry<RequestHandlerInterface<non-empty-string, Result, ServerContext>> $requestHandlers,
HandlerRegistry<NotificationHandlerInterface<non-empty-string>> $notificationHandlers,
ServerInitializationGate $initializationGate,
LoggingLevelGate $loggingLevelGate = new LoggingLevelGate(),
LoggerInterface $logger = new NullLogger(),
JsonRpcMessageParser $parser = new JsonRpcMessageParser(),
Cancellation $cancellation = new NullCancellation(),
)
|
# |
public
|
flushPending(): void
|
# |
public
|
dispatch(array<string, mixed> $envelope, TransportInterface $transport): void
|
# |