handleEventSource