Using comet with PHP?

后端 未结 11 1565
星月不相逢
星月不相逢 2020-11-22 03:09

I was thinking of implementing real time chat using a PHP backend, but I ran across this comment on a site discussing comet:

My understanding is that

11条回答
  •  Happy的楠姐
    2020-11-22 04:03

    I'm having a similar issue. One option I'm finding interesting is to use an existing Comet server, like cometd-java or cometd-python, as the core message hub. Your PHP code is then just a client to the Comet server -- it can post or read messages from channels, just like other clients.

    There's an interesting code snippet linked here: http://morglog.org/?p=22=1 that implements part of this method (although there are bits of debug code spread around, too).

提交回复
热议问题