MCP PHP SDK

SubscriptionManagerInterface

Resource subscription interface.

Tags
author

Larry Sule-balogun suleabimbola@gmail.com

Table of Contents

Methods

isSubscribed()  : bool
Check if a session is subscribed to a resource URI.
notifyResourceChanged()  : void
Notifies all sessions subscribed to the given resource URI that the resource has changed. Sends a ResourceUpdatedNotification for each subscriber.
subscribe()  : void
Subscribes a session to a specific resource URI.
unsubscribe()  : void
Unsubscribes a session from a specific resource URI.

Methods

notifyResourceChanged()

Notifies all sessions subscribed to the given resource URI that the resource has changed. Sends a ResourceUpdatedNotification for each subscriber.

public notifyResourceChanged(Protocol $protocol, SessionInterface $session, string $uri) : void
Parameters
$protocol : Protocol
$session : SessionInterface
$uri : string
Tags
throws
InvalidArgumentException

        
On this page

Search results