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

Method toHostPort

src/utils.ts:960–968  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

958 }
959
960 toHostPort(): { host: string; port: number } {
961 if (this.socketPath) {
962 return { host: this.socketPath, port: 0 };
963 }
964
965 const host = this.host ?? '';
966 const port = this.port ?? 0;
967 return { host, port };
968 }
969}
970
971export const DEFAULT_PK_FACTORY = {

Callers 6

_connectMethod · 0.80
attachCommandFieldsFunction · 0.80
attachConnectionFieldsFunction · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected