I am a junior developer and tryin to learn and immplement new stuff.
I am wondering how can I implemented a web based chat, just like “gmail chat”.
How can I do this, what protocol is used and what shoudl be my starting point?
Regards
Adofo
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would recommend leveraging XMPP and using ejabberd as your server. On the client side (web side), you could use the Strophe.js library to “talk to” your ejabberd server. It is possibly the most active and up-to-date JavaScript library and the developers are usually available to help answer questions on their chatroom (Jabber: sleek@conference.jabber.org).
XMPP is the same protocol that Google chat, Facebook chat, etc. all use and integration with them is possible if desired. I can’t recommend enough reading XMPP: The Definitive Guide as a jumping off point for your project in order to fully understand the protocol.
Another book I recommend for the client (web) side is Professional XMPP Programming with JavaScript and jQuery, though some of the example code has minor typos.
Good luck!
Edit: Also, I should mention that “Jabber” and “XMPP” are used interchangeably very often in the chat world – so you don’t get confused when you’re starting out with your reading.