You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** The hostname, IP address, or Unix domain socket path for the selected server. */
102
+
serverHost: string;
103
+
/** The port for the selected server. Optional; not present for Unix domain sockets. When the user does not specify a port and the default (27017) is used, the driver SHOULD include it here. */
104
+
serverPort: number|undefined;
105
+
106
+
/** @internal */
107
+
constructor(
108
+
selector: string|ReadPreference|ServerSelector,
109
+
topologyDescription: TopologyDescription,
110
+
address: string,
111
+
operation: string
112
+
){
113
+
super(selector,topologyDescription,operation);
114
+
const{ host, port }=HostAddress.fromString(address).toHostPort();
115
+
this.serverHost=host;
116
+
this.serverPort=port;
117
+
}
118
+
}
119
+
120
+
/**
121
+
* An event published when server selection is waiting for a suitable server to become available
0 commit comments