ruby on rails - Is it possible to build a web-based chat client without a socket-based framework? -


I've heard that web-based chat clients use networking frameworks such as twisted framework .

But would it be possible to build a web-based chat client without the networking framework - using the AJAX only connection?

I want to create a session-based one-to-one web chat client that ends the session, to indicate that when the chat is finished. Can only Ajax be used in the railways and without networking structure?

What is the effect of using a networking framework and what effect does it have on my app? Apart from this, any general recommendation for this project will be appreciated.

If I understand you correctly, then you want customers to be connected to the server. And through the server, AJAX has to send each other a message to each other. It is possible, there are two approaches to doing this.

The easiest way is that the customer chooses every few seconds to check for new messages posted in every second. The return is that the messages are not delivered immediately. I think it has been found in an example.

A more complex approach is to keep an open connection and send messages to the customer as soon as they are received by the server. To do this you can use something like this

I would like to add that though the latter works, it is nothing which means that http means and it is a bit hack, but , whatever works. An example example of this is that it uses a Jarzant derivative.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -