I am trying to use SignalR - a real-time web framework - in a Series 40 web app for real-time communication. I'm using the code of official tutorial found at
with two minor modifications to make it work in mobile web app mode such as phonegap. One on the server side, I enabled cross domain request, on the client side, I specified the hub url explicitly like below
$.connection.hub.url = "http://xcopy.azurewebsites.net/signalr";
This works in local preview flawlessly. But not so in cloud preview and emulator. The latter two behaves the same and has major issues described below
In cloud preview, although I can send message, I couldn't receive message normally. The situation is quite weird. If I don't send any message, I couldn't receive any message. If I send messages, then after about 30 seconds, I can receive all the messages that are sent after the web app started. Then again I couldn't receive any messages anymore until I send another message (even an empty message will do) and then about 30 seconds later, I can get the messages that are sent since last received message.
I'm using the long pooling as a way to make near real-time communication.
Anyone has any idea how to fix this?