Can socket.io be used to build a chat app like watsapp?

I am working with a chat application built in PHP and HTML / JavaScript. And it works with a simple client / server socket. But in a simple client-server box, I won't be managing all the criteria.

So, I want to create it using socket.IO

I know a thing or two about this from googling:

  • Socket.IO is a JavaScript library for real-time web applications.
  • JavaScript interface for working with websockets.
  • It is an easy way to forward messages from client to server and server to client.

But this is not helpful for me. So let me know what it is? And how to work on it? And how to create a chat application using PHP, HTML and JavaScript.

+3


source to share


1 answer


Socket.IO is the module used for node.js, node.js is almost server side javascript. with socket.IO you can set up a server-to-server connection to allow bi-directional connection. instead of polling and longpolling, you can send data to the client without asking the client.



for more information see node.js and socket.IO

+2


source







All Articles