| Methods |
public
|
__construct(
bool $toolsListChanged = false,
bool $promptsListChanged = false,
bool $resourcesListChanged = false,
bool $resourceSubscriptions = false,
LoggerInterface $logger = new NullLogger(),
int $maxSubscriptions = self::DEFAULT_MAX_SUBSCRIPTIONS,
)
|
#
|
public
|
open(RequestId $subscriptionId, SubscriptionFilter $requested, SenderInterface $sender): SubscriptionEntry
Opens a stream, acknowledging it before it becomes visible to any emit.
Opens a stream, acknowledging it before it becomes visible to any emit.
Parameters
| $subscriptionId |
Id every message on the stream carries, as the client sent it
|
Implements
|
#
|
public
|
close(SubscriptionEntry $entry): void
Tears $entry down: tells the client which subscriptions/listen is ending, then releases the
handler holding it open. Does nothing for a stream that is already gone.
Tears $entry down: tells the client which subscriptions/listen is ending, then releases the
handler holding it open. Does nothing for a stream that is already gone.
Implements
|
#
|
public
|
discard(SubscriptionEntry $entry): void
Deregisters $entry without announcing anything, for a stream the client already abandoned.
Deregisters $entry without announcing anything, for a stream the client already abandoned.
Implements
|
#
|
public
|
closeAll(): void
Closes every open stream, releasing each handler so the server can drain. Streams opened afterwards
are settled at once rather than held.
Closes every open stream, releasing each handler so the server can drain. Streams opened afterwards
are settled at once rather than held.
Implements
|
#
|
public
|
emitToolListChanged(): void
|
#
|
public
|
emitPromptListChanged(): void
|
#
|
public
|
emitResourceListChanged(): void
|
#
|
public
|
emitResourceUpdated(string $uri): void
Announces that the contents behind $uri changed, to the streams subscribed to that URI.
Announces that the contents behind $uri changed, to the streams subscribed to that URI.
Implements
|
#
|
public
|
honour(SubscriptionFilter $requested): SubscriptionFilter
Narrows $requested to the notification types this store delivers. The spec omits the types it does
not honour rather than reporting them false.
Narrows $requested to the notification types this store delivers. The spec omits the types it does
not honour rather than reporting them false.
Implements
|
#
|