added TLS layer to fix 3G WebSocket bug