Help deal with porridge in my head from the abundance of any information! I'm confused, I have the task to make a chat like in vk . As far as I understand, you need a websocket , then with his help organize this chat.

The first question is how to install websocket on a hosting.

The second question is how to make a chat with websocket

I do not ask you to write code for me, but give, if you have, an intelligent manual that will help the absolute beginner to solve these issues.

    2 answers 2

    It's simple. On the client (in the browser) we have an active web socket, and on a server like PHP we have an active web socket, they communicate without reloading the page. By the way, their interaction is very similar to the interaction of TCP sockets.

    For web sockets in PHP we can either use a ready-made library, like PHPDeamon , or we can write with pens.

      There is an over99999 and another small dolly with examples of what you want on NodeJS. Googling it all with magic words : nodejs chat

      Here is one of 9999 examples.

      What is NodeJS, you can read here

      • @ Yevgeny Ivanov asked a man to give him a manual, how it is possible to implement it, I gave him this manual, if he has any questions on this manual, he can leave a question here or on that site. - BigTows
      • At the same time you send a person to a search engine. What's the point? - Evgeny Ivanov
      • @ YevgenyIvanov What search engine? Did you follow links? - BigTows
      • "Googling all this with the help of magic words: nodejs chat", while they themselves gave just one example. - Evgeny Ivanov