程式碼:
Handler.prototype.getClientIp = function(msg, session, next) { var ip = session.__session__.__socket__.remoteAddress.ip console.log(ip); }
程式碼:
Handler.prototype.getClientIp = function(msg, session, next) { var ip = session.__session__.__socket__.remoteAddress.ip console.log(ip); }