Ionic + VS Cordava Tools + ripplejs Disconnect issue

Hi ,
I am building a chat app connecting with SignalR backend. IDE used is Visual Studio with Apache Cordava tools. I am seeing a Behaviour of SignalR disconnecting automatically after sometime. Also SignalR uses longpolling instead of Websockets. Is there a example of SignalR + Ionic ? what am I doing wrong. I am creating HubConnection outside Angular Module in global level.

Appreciate help.