客户端订阅一个Hub,当feed有更新时Hub会即时通知客户端。
The client subscribes to a Hub and it is almost instantly notified when the feed is updated.
我们为什么不给PSHB协议添加一种简单机制,当客户端订阅推送更新时会留下一些识别信息,如姓名、头像等?
Why couldn't we add a simple mechanism to PubSubHub so that when a client subscribes to push updates, it leaves behind some optional identifying information about the user like their name and avatar?
发布/订阅消息模型极其强大,可以将UI元素本身及UI元素与服务器端进行解耦。
The publish/subscribe messaging paradigm is EXTREMELY powerful and enables clean decoupling of user-interface elements from each other, and from the serverside.
应用推荐