0

I want to implement a Pusher client in Qt, and I was wondering what the difference is between the client API and the server API.
As they are telling on their site, clients are consumers and servers are producers (including authentication verifications).
Is it correct that a client cannot publish events, and that we always need a server to handle event distribution and authentication?

4

1 回答 1

1

客户端不能发布事件,我们总是需要服务器来处理事件分发和身份验证,这是否正确?

客户端可以发布事件,但只能在经过身份验证的通道上:http: //pusher.com/docs/client_events

服务器库往往具有您提到的功能。但是可以在一个库中拥有所有功能。但是,这种划分功能的方式非常适合执行安全良好实践,并且通常适合应用程序想要使用它的地方。

iOS 库 (libPusher) 提供的不仅仅是标准客户端功能,例如您可以调用 Pusher 的 Web API。

于 2013-08-14T10:44:30.647 回答