MCPcopy Index your code
hub / github.com/nodejs/node / toJSON

Method toJSON

lib/internal/socketaddress.js:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 toJSON() {
136 return {
137 address: this.address,
138 port: this.port,
139 family: this.family,
140 flowlabel: this.flowlabel,
141 };
142 }
143
144 /**
145 * Parse an "${ip}:${port}" formatted string into a SocketAddress.

Callers 1

[kInspect]Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected