代码:
Handler.prototype.getClientIp = function(msg, session, next) { var ip = session.__session__.__socket__.remoteAddress.ip console.log(ip); }
本文转自王磊的博客博客园博客,原文链接:http://www.cnblogs.com/vipstone/p/4444828.html,如需转载请自行联系原作者
代码:
Handler.prototype.getClientIp = function(msg, session, next) { var ip = session.__session__.__socket__.remoteAddress.ip console.log(ip); }
本文转自王磊的博客博客园博客,原文链接:http://www.cnblogs.com/vipstone/p/4444828.html,如需转载请自行联系原作者