Can I take an action when a new stream fed to/from EMS?
Yes! You can receive HTTP posts, similar to XML or JSON-RPC, which will notify you of specific events. You are then free to take any action necessary.
For details, see:
See section 5 below for the different events you can use:
One of these events may be useful: