On Oct 16, 3:04 pm, Alex Woodgate <[email protected]> wrote: > AFAIK robots can only access the wave through events you subscribe to > in the capabilities.xml file, "Note that a robot cannot contact Wave > directly; it can only respond to wave-related events and cron events". > To get around this I made a robot that uses a class that extends > HttpServlet to recieve external actions, sets a value and then in a > seperate class cron event every 10 seconds checks to see if that value > has been changed so it can update the wave in response to it. So far > this has just about worked though it is my first robot and hasn't been > tested properly.
I had this very same problem while thinking about external events. It would look as if you need to handle the external message separately and store the result for the next cron-event from the Wave-server (?). Unfortunately, this is hardly effective. To my knowledge, there is a call to a robot for each event that happens on the wave, or for each cron-event. This can, for a 10 second timer, mean $(dc -e '24 60 60 * * 10 / p') == 8640 calls per day per wave. There can be 0 external events in that period - which I hardly see as effective. Calling once per minute yields 1440 calls, which is still too much in my opinion. If my robot becomes a success I face the problem to pay for its resources. Perhaps the solution is not to use robots for this kind of task? External events in the Robot API is not a simple thing to solve though. First, there is the problem that the external trigger has no way to connect to a specific wave, which may be a technicality that can be solved. Second, if events can be triggered externally, you face the same problem as on IRC: You need flood protection. I think it would be nice to have a simple way to integrate external events into waves. The integration has proven to be extremely powerful on IRC for source code commits for instance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Wave API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en -~----------~----~----~----~------~----~------~--~---
