It’s easier than you think
This powers the Slack and WordPress.com desktop apps among other things. It was developed by Github and is open source. I hadn’t heard of this until this afternoon, but it certainly seems like something that is worth taking a look at. HT to Dave Winer who’s using it for his new Electric River app.