php8.5
Home/ Manual/ monitoring / sdamsubscriber/ MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening

MongoDB\Driver\Monitoring\SDAMSubscriber::serverOpening

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Notification method for opening a server

Description

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

Void

Errors/Exceptions

See Also

Source: reference/mongodb/mongodb/driver/monitoring/sdamsubscriber/serveropening.xml · from the official PHP manual (php/doc-en)