boundSocket.address()
- 返回:<Object> | <string> 对于 TCP 绑定,使用具有
address、family和port属性的对象,就像server.address()返回的那样。对于管道绑定,使用绑定的路径字符串,就像server.address()为管道服务器返回的那样。
返回绑定的本地地址。当与 port: 0 绑定时,port 是操作系统分配的临时端口。
🌐 Returns the bound local address. When bound with port: 0, port is the
OS-assigned ephemeral port.