Listening to events from server