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

Method uri

test/tools/mongodb-mock/src/server.js:59–63  ·  view source on GitHub ↗

*

()

Source from the content-addressed store, hash-verified

57 *
58 */
59 uri() {
60 const { host, family, port } = this.address();
61 const isIpv6Address = family.toLowerCase() === 'ipv6';
62 return isIpv6Address ? `[${host}]:${port}` : `${host}:${port}`;
63 }
64
65 /**
66 *

Callers 1

hostAddressMethod · 0.95

Calls 1

addressMethod · 0.95

Tested by

no test coverage detected