Forum OpenACS Development: Re: Toughts on an Event Engine
I want the server to notify connected clients about events happened. This means that wherever something noteful happens, the server should be able to push this information to the clients listening to such events.
I don't think it can be done with callbacks, because we cannot contact clients from the server directly. We need them to connect to a special webservice which remains silent until the event happens, then spits out some information.
In the meantime I created a package in which I implemented my idea of event handler: it allows the throwing of arbitrary events with a simple api. You can then define a webpage which will listen for any of this events to fire, each time reacting with a user-defined piece of code.
I will soon submit my code to the public to be commented.