开发者

Codeigniter Chat [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help c开发者_开发百科enter for guidance. Closed 10 years ago.

I am looking codeigniter chat script.

I expect like http://anantgarg.com/chat/sampleb.php.

Have anyone know any script for codeigniter chat?


You can find a detailed set of video tutorials on building a chat application on codeigntier - Codeigniter Tutorial – Creating A Web Chat App using JQuery AJAX

There is also this and this resources.


To do this efficiently you should use an efficient transport like for example:

  • websockets
  • flash-socket
  • long-polling
  • http-streaming

but not polling(periodic refresh), because this has scaling problems written all over it.

Luckily you can use pusher to achieve this. Pusher does have a free price plan which should get you started.

Our free Sandbox plan includes up to 20 connections and 100,000 messages per day. Simply upgrade to a paid plan when you're ready.

Long before you hit that generous quota your server would have collapsed under the load if you used polling(periodic refresh). Furthermore you will probably get notice(maybe site taken down) from your shared hosting provider if you are doing periodic refresh. I know this because in the past I had such chat system using periodic refresh on a small forum and I got a notice because the server was under tremendous load.

Thanks to a developer named Squeeks you can get started with Pusher without any effort because he created a nice little library called Pusher-php which uses the REST protocol to communicate with pusher API. You don't need to worry about the details

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜