socket.remoteFamily


远程 IP 类型的字符串表示。'IPv4' 或 'IPv6'。如果套接字已被销毁(例如,客户端断开连接),其值可能为 undefined。

【The string representation of the remote IP family. 'IPv4' or 'IPv6'. Value may be undefined if the socket is destroyed (for example, if the client disconnected).】