Well, i have a simple ajax chat application. It works in this way.. user sends a http ajax requests for new messages in 1 seconds interval. server checks if there is any new message for that user, If there is any new message then server encodes in json format and sends to user.
now the question is how to combine ajax chat and also socket chat in same time? so a some user can chat using socket based device and some can use ajax..