Hi,
first time poster, be gentle! :)
I have a problem related to a WebSocket server behind AWS ELB, that's configured with TCP over SSL. The problem I'm experiencing is that I loose the origin IP of the connection, which I need for my application. So, to get the origin IP of the connection I need to enable Proxy Protocol Support for my ELB instance, which directly breaks the handshake for the WebSocket connections. I know that this issue can be solved by putting a nginx instance between the ELB and the WebSocket server, but I'm wondering if there is any other way? I would love to fix this with my current stack without adding another layer to it.
The module I've found (node-proxywrap) seems to not be maintained anymore and consist one critical issue related to a memory leak, therefore that one is not an option.
Anyone having any suggestions? I thought of piping the TCP connection in the http.on('connection' ...) event, but found quickly that the connection don't emit any events.
Cheers,
Fredrik Slättman