Server push: comet vs ape?

后端 未结 8 978
难免孤独
难免孤独 2021-02-15 16:24

I\'ve read a little about comet and also APE.

Which one is better? I want the users to see other users updated content. Like Google Wave.

And in comet, there are

8条回答
  •  无人及你
    2021-02-15 16:48

    APE is an implementation of Comet. It provides a non-blocking IO server and JS client libraries to implement a publish/subscribe messaging system.

    The APE server itself can be programmed using server-side javascript. Server side code such as PHP/Ruby/whatever may broadcast data through APE by issuing 'commands' to the APE server.

    Connected clients receive this data by listening for 'Raws' ; which are events and data sent from the APE server to the client.

提交回复
热议问题