ASP .NET MVC - SignalR WebSockets and Android

Problem in some Android Browsers for real time WebSockets

I implemented a real time web channel within an ASP .NET MVC web Application through a SignalR Hub proxy, but on most of Android Browsers it not work well. It seems to work on some recent Android Chrome browsers, anyway to have a full compatibility in the Hub initialization i had to put a fallback to the "longPolling" mode in the case of Android devices, some code like this:

if (isAndroid) { $.connection.hub.start({ transport: ['longPolling'] }).done(function () { receiver.server.processEvents(); }); } else { $.connection.hub.start().done(function () { receiver.server.processEvents(); }); }