开发者

AMFPHP call from server to client

Is it possible to call a client method from server using AMFPHP?

For example if there is a Flash chat app with PHP backend. Everytime a new chat is logged from on开发者_如何学JAVAe of the clients, server would call update in all of the clients?


You are thinking it backwards. Server doesn't update the client on time or event basis. Client need to send request periodically, and server responds.


In order for the server to broadcast events to your flash client, it would have to have a constant connection, which is not how amfphp works. Your best bet would be to either set the client to periodically check amfphp for changes and act accordingly, or to look into a java-based server like Flash Media Server or SmartFoxServer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜