Automatically disable WebSocket when the URL begins with 'http'.