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

Method port

src/sdam/server_description.ts:168–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167
168 get port(): number {
169 const port = this.address.split(':').pop();
170 return port ? Number.parseInt(port, 10) : 27017;
171 }
172
173 /**
174 * Determines if another `ServerDescription` is equal to this one per the rules defined in the SDAM specification.

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected