Dispatch an event contains data retrieved from server

Thanks for your works, I used your lib in my project and I did some modifications for my needs, I think it will also be useful for other that use this lib because it is a very common requirement.

Thanks!