Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-2010, 07:46 AM
Moderator
 
Posts: 7,928
Default Push to 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.
__________________
Reply With Quote
  #2 (permalink)  
Old 06-26-2010, 10:12 AM
Project Contributor
 
Posts: 92
Default

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.
Reply With Quote
  #3 (permalink)  
Old 06-27-2010, 01:20 AM
Moderator
 
Posts: 7,928
Default

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 ?
__________________
Reply With Quote
  #4 (permalink)  
Old 06-27-2010, 06:06 AM
Project Contributor
 
Posts: 92
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.