Page 1 of 1

jabber chat in php integration help

Posted: Thu Mar 13, 2008 1:20 am
by srinivasanm
Hello Everyone,

There is a need for me to integrate jabber chat in my application. So i am in a stage of creating a client window, from where we can chat with each other (it is only a simple chat window - where one to one chat is possible).

What I am done right now is as follows,
1. I am provided a link, so when we click that link than we will opening a pop up window.
2. This window is built with frames, so the top frames will call the class_jabbar.php files for showing the chat messages. Where as in the bottom frame there is a textarea - which is used to send messages to other persons.

What I am confused here is,
1. Whether each time we should connect the jabber server and also login for authentication?? Because as i said above when we opened the pop up window - the top frame will connect the jabber server and also login for autentication.
2. Whereas in the bottom frame it will also connect to the server and login again while sending messages each time to others. Which means, the system will login/connect the server each time when i am sending messages to others.

My question is whether the above thing is correct, login/connecting the jabber server each time while sending messages is correct. If not please provide me a solution for this as soon as possible.

Thanks and Regards,
Sri