implement EventSource communication