TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: implementing realtime on iPhone

2 点作者 ambertch超过 14 年前
I'm finding a dearth of clients that talk some sort of push protocol for iOS. I've been implementing my bits with in app routing for APNs but am looking for something more... real (Can't be spamming push notifications when users are out of app, right?)<p>So far I've only found an iPhone STOMP client here https://github.com/juretta/objc-stomp that I could hook up to something like Orbited, and I would like to get all my options on the table if anyone could help me out.<p>There's always the option to pick damn near any evented server and fill in the dots client side with something like http://code.google.com/p/cocoaasyncsocket/ , but more un-wheel-reinventing suggestions would be preferable! Thanks

1 comment

slysf超过 14 年前
I've had great luck with using xmpp with pubsub as a method of client/server communication. It has a number of advantages in that once you've converted your commands to xml in an xmpp payload you can route to a variety of backend services that speak xmpp. You also get things like presence for free which can be useful in many cases. This might be useful: <a href="http://code.google.com/p/xmppframework/wiki/iPhone" rel="nofollow">http://code.google.com/p/xmppframework/wiki/iPhone</a> Here's an excellent scalable xmpp server that's highly extensible: <a href="http://ejabberd.im" rel="nofollow">http://ejabberd.im</a>