douhuireng4407
douhuireng4407
2013-07-11 11:14
浏览 28

使用php在XMPP上创建聊天应用程序

I am trying to create a web chat application with PHP, MySQL. I want to stream the data from the server to client instead of requesting the server in a regular intervals which will cause huge load at servers. I believe this is possible in many ways and XMPP is one of those i heard earlier, but i have no idea how to adopt this xmpp into scripts, how to use it? If some one can give some examples or code references that would be great help.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • doufuhao0566
    doufuhao0566 2013-07-16 07:46
    已采纳

    Please check the documentation of XMPP, All the social media sites including Google facebook uses XMPP in their instant messaging.

    点赞 评论
  • dragon202076
    dragon202076 2013-07-12 05:03

    For working with XMPP on client side, you can either use websockets or http bind(aka bosh) based on your requirements and support from the xmpp server. I have tried and experimented with trophyjs and Candy.Js. Candy being slightly better in terms of plugins and support if you like chat rooms.

    点赞 评论

相关推荐