Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Monitoring\SDAMSubscriber::serverHeartbeatSucceededMongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged>
^MongoDB\Driver\Monitoring\SDAMSubscriberLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening — Notification method for opening a server

Description

abstract public function MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $event): void

If the subscriber is registered, this method is called when a new server is added to the topology.

Parameters

event (MongoDB\Driver\Monitoring\ServerOpeningEvent)

An event object encapsulating information about the opened server.

Return Values

No value is returned.

Errors/Exceptions

See Also


<MongoDB\Driver\Monitoring\SDAMSubscriber::serverHeartbeatSucceededMongoDB\Driver\Monitoring\SDAMSubscriber::topologyChanged>
^MongoDB\Driver\Monitoring\SDAMSubscriberLast updated: Mon, 26 Oct 2026