replace websocket with sse