Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am trying to figure out how to write an instant messenger like Google talk/Facebook Chat for my website. The accounts would all be in a mysql database.

How could I get started with this?

share|improve this question

closed as off topic by John Conde Aug 9 '12 at 10:27

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Normally these kinds of questions are migrated to StackOverflow. But due to its low quality nature they will close it as soon as they receive it so I am just going to close it here. –  John Conde Aug 9 '12 at 10:27
add comment

2 Answers 2

up vote 1 down vote accepted

Might not be worth writing from scratch. If you look at services such as olark they offer live support chat for probably less per month than the cost of writing your own support chat.

If you are looking to have group chat, then look at cometchat. Its a script you can install on your server that will give you facebook style user to user chat.

If you want to write your own from scratch, you are going to have to deal with Ajax Polling, Comet, HTML5 websockets. Its a lot of work to support all browsers. Another option is to use pubnub and build on their infrastructure.

share|improve this answer
add comment

Try using existing technologies like nodejs + nowjs or the brand new technology Meteor.

They implement the web sockets thing automatically, and you can focus your app specific requirements.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.