I'm not sure if this is possibly, I may end up having to change how I'm doing this.
I have an Android app that's mostly just a webview that displays the mobile version of a site, which is in .NET. The chat room uses jQuery and updates every 1.5 seconds using ajax. The box you type in though is part of the Android app though. When you submit a message it's sent to a REST page and then added to the messages list. The users session is on the chat page, not on the REST page.
Because of the 1.5 second delay between refreshes it can make the chat seem laggy. I'd like to somehow trigger an event to immediately update the messages for that user. I'm wondering if this can be done using jQuery or javascript.
Has any done something like that, or know how this can be done?