added support for server-sent events