einaros/ws — pull request #46 by nicokaiser (2012-03-23 15:49:59+00:00)
Title: Add loadbalancer and proxy support with X-Forwarded-Proto

When using ws with a forwarding proxy (e.g. stunnel) to add SSL support (i.e. not through a https server instance), the "Location" header is wrong, as Node thinks it's a http connection.

With this patch, the forwarding proxy can set the "X-Forwarded-Proto: https" header, and ws knows the "Location" must start with "wss".