[minor] Added x-real-ip as option.
[fix] Added detection for broken WebSocket implementations.