message.socket


与该连接相关的 net.Socket 对象。

【The net.Socket object associated with the connection.】

在支持 HTTPS 的情况下,使用 request.socket.getPeerCertificate() 获取客户端的认证详细信息。

【With HTTPS support, use request.socket.getPeerCertificate() to obtain the client's authentication details.】

这个属性保证是 <net.Socket> 类的一个实例,它是 <stream.Duplex> 的子类,除非用户指定了除 <net.Socket> 之外的套接字类型,或者在内部被置为 null。

【This property is guaranteed to be an instance of the <net.Socket> class, a subclass of <stream.Duplex>, unless the user specified a socket type other than <net.Socket> or internally nulled.】