Websocket is a two-way communication channel and there is a need for polling. While Server-Sent Events are a one-way communication channel.