Is there any way to write a Zimlet that can receive push events and force a popup window ? I understand that Ajx.RPC could be used for polling but I am looking for a way to push messages into a Zimlet.
Is there any way to write a Zimlet that can receive push events and force a popup window ? I understand that Ajx.RPC could be used for polling but I am looking for a way to push messages into a Zimlet.
Hi uxbod,
I think that the zimlet you are working on is pretty much interesting!!
But I think it is difficult to "push" messages into a Zimlet on Web Browser with HTTP.
The only way I think of is long polling, which is already used in Zimbra with Asynchronous Ajx.RPC and Jetty Continuation for NoOP request.
Other than that, WebSocket could be the one, but this is just a guess because I have never tried to implement it myself.
Thank for the reply; what I do wonder though is how the Instant Message client within ZWC as surely that must receive push events, unless that to is constantly polling ?
That case, the blog entry below would be helpful for you:
New Adventures in Comet: polling, long polling or Http streaming with AJAX. Which one to choose? 6312
From my understanding, NoOp request uses "long polling" in this entry to receive push event.
I guess that IM client in ZWC must use NoOp or something like that using long polling to receive push event.
There are currently 1 users browsing this thread. (0 members and 1 guests)