einaros/ws — pull request #360 by yrchern (2014-09-04 18:01:16+00:00)
Title: Add the X-Forwarded-For to WebSocket if if it's there

In case of the server is behind a proxy such as nginx, ws._socket.remoteAddress gives the IP address of the proxy. By adding xff (X-Forwarded-For) as one of the options of ws, you will be able to obtain client's IP address by reading ws.xff.