Real-Time communication between PHP and Flex application

前端 未结 3 1754
自闭症患者
自闭症患者 2021-01-27 15:42

I have a Flex/AIR application communicating with a PHP server application. Recently my client requested real-time-like connectivity between the applications to replace what we c

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-27 16:16

    You cannot push data from the server to the client. That's the nature of the web :(

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

    If something has changed then you can take the necessary actions. This is how google / facebook and everyone else does this. To the user it looks like the server pushed the data but internally the client keeps polling the server.

提交回复
热议问题