[英]ews php - Push notifications vs Streaming notifications
I'm trying to sync all calendars in my exchange server with my app, and for that, I am using PHP-EWS: jamesiarmes/php-ews!我正在尝试将我的交换服务器中的所有日历与我的应用程序同步,为此,我正在使用 PHP-EWS: jamesiarmes/php-ews!
After some research, I found 2 options to consider:经过一番研究,我发现了两个可供考虑的选择:
Push notifications - I've worked with something similar before, in this case, I should know how it works!推送通知 - 我以前使用过类似的东西,在这种情况下,我应该知道它是如何工作的!
Streaming notifications - I've never worked with this before and I don't understand it, do I need to check from x to x time if there are any notifications for the created channel?流通知 - 我以前从未使用过这个,我不明白,我是否需要检查从 x 到 x 时间是否有创建的频道的任何通知?
Can you help me choose between the two of them since I don't understand the streaming notification to 100%?你能帮我在这两者之间做出选择吗,因为我不能 100% 理解流媒体通知?
With streaming notifications , your client opens a long running HTTP request to the server and the server sends events in the HTTP response over a long period.使用流通知,您的客户端向服务器打开一个长时间运行的 HTTP 请求,服务器在很长一段时间内在 HTTP 响应中发送事件。 This can be done without additional software in the client.这无需客户端中的其他软件即可完成。
With push notifications , you give the server a URL to send notifications to as HTTP requests.使用推送通知,您可以为服务器提供一个 URL,以将通知作为 HTTP 请求发送到。 This requires that the client have an HTTP server running and an application to process events.这要求客户端运行 HTTP 服务器和处理事件的应用程序。
I believe EWS only supports streaming notifications.我相信EWS 只支持流通知。 I'm not sure what that PHP library supports.我不确定那个 PHP 库支持什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.