Adding window.WebSocket check #28