diff --git a/lib/io/ioserver.js b/lib/io/ioserver.js index a00e7eec..ad852539 100644 --- a/lib/io/ioserver.js +++ b/lib/io/ioserver.js @@ -128,7 +128,7 @@ function addTypecheckedFunctions(sock) { function handleConnection(sock) { var ip = sock.request.connection.remoteAddress; if (!ip) { - socket.emit("kick", { + sock.emit("kick", { reason: "Your IP address could not be determined from the socket connection. See https://github.com/Automattic/socket.io/issues/1387#issuecomment-48425088 for details" }); return;