socket.address()
- 返回: <Object>
返回操作系统报告的 socket 的 address
、地址的 family
名称、以及 port
:
{ port: 12346, family: 'IPv4', address: '127.0.0.1' }
。
- Returns: <Object>
Returns the bound address
, the address family
name and port
of the
socket as reported by the operating system:
{ port: 12346, family: 'IPv4', address: '127.0.0.1' }