You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
MongoDB\Client::removeSubscriber()
New in version 1.18.
Definition
Parameters
$subscriber: MongoDB\Driver\Monitoring\Subscriber- A monitoring event subscriber to unregister with this Client.
Errors/Exceptions
MongoDB\Exception\InvalidArgumentException for errors related to
the parsing of parameters or options.
Behavior
If $subscriber is not registered with this Client, this function is a no-op.