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

Method fromSrvRecord

src/utils.ts:956–958  ·  view source on GitHub ↗
({ name, port }: SrvRecord)

Source from the content-addressed store, hash-verified

954 }
955
956 static fromSrvRecord({ name, port }: SrvRecord): HostAddress {
957 return HostAddress.fromHostPort(name, port);
958 }
959
960 toHostPort(): { host: string; port: number } {
961 if (this.socketPath) {

Callers 1

hostnamesMethod · 0.80

Calls 1

fromHostPortMethod · 0.80

Tested by

no test coverage detected