I'm trying to achieve the following:
when the server doing X I want to send a message to user Y.
as I can see in ClankBundle's documentation I can achieve that in two ways:
- make a call from the user side on js.
- to make a loop that checks if X happened every Z seconds.
both of them not really effective as I don't want to check my db every Z seconds I know when X happens and I want to send the message when it happens, I mean.. Symfony2 is events based I'm pretty sure I'm missing something around here.