MCPcopy
hub / github.com/mongodb/node-mongodb-native / connect

Method connect

src/sdam/monitor.ts:152–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 connect(): void {
153 if (this.s.state !== STATE_CLOSED) {
154 return;
155 }
156
157 // start
158 const heartbeatFrequencyMS = this.options.heartbeatFrequencyMS;
159 const minHeartbeatFrequencyMS = this.options.minHeartbeatFrequencyMS;
160 this.monitorId = new MonitorInterval(monitorServer(this), {
161 heartbeatFrequencyMS: heartbeatFrequencyMS,
162 minHeartbeatFrequencyMS: minHeartbeatFrequencyMS,
163 immediate: true
164 });
165 }
166
167 requestCheck(): void {
168 if (INVALID_REQUEST_CHECK_STATES.has(this.s.state)) {

Callers

nothing calls this directly

Calls 1

monitorServerFunction · 0.85

Tested by

no test coverage detected