2
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by sonakrish
0

start with understanding comet.
let say user1 wants to chat with user2. now flow will be like this:
1. user1 will type message and send it - this you can do by simple http ajax request, send message to server using ajax.
2. now server will get message from user1 and send to user2, here lies the problem, for this, you need to use server push technology. for which i have given the article above.
3. message will be shown to user2.

Note: here i have not mentioned the complexities involve in signing in by user1 and user 2, creating account etc.

0

without ajax it will be no more a chat application, because using ajax you will be sending data to server in background. why you dont want to use ajax?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.