English 中文(简体)
PHP与灵活应用之间的实时通信
原标题:Real-Time communication between PHP and Flex application

我有与PHP服务器应用程序通信的灵活/AIR应用程序。 最近,我的客户请求在申请之间实现实时的连接,以取代我们目前已经掌握的内容;复信须点击以更新数据。

因此,服务器在出现变动时,需要将数据推向客户。 我可以写一下在什么时候发现什么变化的法典,但我并不肯定事情的推向。

我在这里的最佳选择是什么?

最佳回答

实际上,在使用闪电单时,你可以将数据从服务器上推向客户(这意味着绕过了《在线议定书》)。 如果你不能使用袖珍片,你可以使用polling、长时间投票或http streaming。 然而,它需要同时尽一切力量,因此我建议研究已经具有这种特征的产品。 公共卫生和社会福利部的网络设施就是其中之一,我知道的是免费的。

问题回答

我不想向你们提供某种帮助这种局面的法典,但我可以向你们提出一些想法,说明你如何做到这一点。

我将不寻求PHP来推动灵活性,而是把你召集起来。 • 灵活规范,不断为新发生的人提供购买力平价。 如果你能够确保服务器能够做出足够迅速的反应,那么你可以每秒钟。 另一种情况是,5秒钟左右的事物仍然是实时的。

如果PHP正在将DATA送回你的弹性体,那么我会保证它会寄送有数据的身份证,以便你能够利用该身份证在你的弹性体中了解最后归还的数据。 每当你寄寄出最后的身份证时,你就不知这种方式,告诉他们只有寄出新的DATA。 很多时候,你会回头,但是,如果数据已经显示在屏幕上,那么它比照照照照照照照照照照相,而且 band带宽和青.塞。

我们不能把服务器的数据推向客户。 这符合网站的性质:

What you have to do is continuously poll the server from the client and check if something has changed.

如果情况发生变化,你可以采取必要行动。 这就是 go角/面纱,每个人都这样做。 对用户来说,它喜欢服务器驱动数据,但内部客户对服务器进行投票。





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it s triggering calls to all the methods with ResultEvent as an argument . I am supposed to ...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I ve been advised in another SO question to write a custom ...

Clearing RSL in Cache

I have built a flex application which has a "main" project and it is assosciated with a few RSL s which are loaded and cached once i run my "main" application. The problem i am facing is that the ...

What s a good way of deserializing data into mock objects?

I m writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I d prefer not to generate the data in code like this: var mockData =...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

热门标签