Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
hostAddress
Method · 0.95
Calls
1
address
Method · 0.95
Tested by
no test coverage detected