News for hackers. Stuff that matters.
Re:Making email more modern with JMAP by Nasreddin_Hodja on Saturday August 17, 2019 @10:36AM (#20724227)
https://jmap.io/#push-mechanism JMAP going to use rfc8030 push for mobile (3rd party service for notifications, really?) and EventSource (kind of http long polling) for desktop clients, as I understood. I don't like that idea, it's even worse than IMAP4 IDLE. Why not just WebSockets for mobile and desktop clients?

Or just building it on top of XMPP protocol (or any other chat protocol).

Re:Making email more modern with JMAP by nailer on Saturday August 17, 2019 @10:42AM (#20724258)
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.

Re:Making email more modern with JMAP by wchest on Saturday August 17, 2019 @10:49AM (#20724298)
> 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.