adding check for WebSocket support