From what I remember, websockets might not work in a corporate network or through a VPN. Websockets changes the connection to an "upgraded" protocol. It starts with a http connection and then follows different rules after the upgrade. I think server-sent events might work under more situations than websockets.