HTML5 Server Sent Events are better than long polling, and they're about as old as websockets, but simpler, as they maintain the concept of HTTP resources whereas websockets replace the concept. HTML5 SSE is also easier to implement.
Not hating on websockets, but saying HTML5 SSE is outdated tech is just wrong. If you were making a real time app that works over HTTP either would be fine.
Re:Making email more modern with JMAP
by Nasreddin_Hodja on Saturday August 17, 2019 @10:47AM
(#20724286)
> HTML5 Server Sent Events are better than long polling
But it works the same way: infinite http connection.
> The JMAP protocol is transport agnostic and can be easily transported over a WebSocket, for example, as well as HTTP
From section 10. of the jmap.io link you referenced. I haven't used JMAP or looked into the spec in any detail, but wanted to provide that context for anyone coming here and seeing the parent comment first. Sounds like you can use WebSocket or any other transport mechanism.
Or just building it on top of XMPP protocol (or any other chat protocol).