Live Chat in Code igniter |
[eluser]Craig A Rodway[/eluser]
This is an active topic... Perhaps if you give us a bit more information it would get a useful reply.
[eluser]Derek Allard[/eluser]
What are you looking for, what have you tried? Have you googled for "live chat"? What does it reveal and why is that not suitable for your needs?
[eluser]Mark van der Walle[/eluser]
What do you want to accomplish? Do you want to build a Live Chat in CI yourself or looking for people who have done that? Without more information the people here can't help.
[eluser]xwero[/eluser]
The php side of a live chat is pretty basic because it's nothing more than collecting the messages and displaying them. it's the javascript part that is the hardest to get right.
[eluser]bikuta[/eluser]
Sorry to ressurrect an old thread, but I'm actually building a web app which is based on a live chat. I'm just trying to figure out ways I can detect if the other person is typing a message, e.g., in gtalk you'd get something like "Amy is typing a message..." What's the best way to do this? If I did it through the database it might get quite heavy for the server as this application needs to be scalable (expecting at least 500 simultaneous users). I haven't really done this kind of thing before, any suggestions?
[eluser]Neophyte[/eluser]
theres a few different approaches such as rolling your own solution using say Comet - http://cometd.com/ or you could setup an XMPP server (Openfire is pretty cool) then use a BOSH compatable JS client. But the underlying approach they all take is long polling where instead of asking the server every 500ms or so for info you establish a connection and leave it open waiting for the server to tell you when something happens. Best example of this is probably the little gtalk javascript client you see in gmail if you open up firebug and monitor the net connections you will see it is always waiting on a connection then when it receives data and completes it immediately opens a new connection and begins waiting for the next event. |
Welcome Guest, Not a member yet? Register Sign In |