Add server-sent events to client and server-side