Answer the question
In order to leave comments, you need to log in
How to implement personal correspondence on the site like dialogues in VK?
Hello. There is a site on YII2, it is necessary to implement normal (ala VK) correspondence between users. Most of the googling resulted in node.js + socket.io answers. The question, in fact, is, but within the framework of php there are no similar solutions? And, if not, then it turns out for me to raise a separate server with node.js that will serve the correspondence? Or what do you think is the best way to implement all this? Thanks in advance for your replies
Answer the question
In order to leave comments, you need to log in
Ratchet I once looked at sockets, but now I understand that nodejs is much better in this regard. And more convenient. You can do at least in assembler, but why? I now have both of these languages working in combat projects. PHP for fast admins and landing pages, and nodejs for asynchrony and event model
It all depends on the business task.
If it is critical not to use the new technology, since this is an extra cost for administration, you can simply query the client for timing.
Or there are widgets based on Telegram, which can be connected to each other.
In general, you can do a lot of things, if for study, then you can dig into Node.js, as well as asynchronous PHP, or Go in general.
In general, yes, I have not found stable implementations in php. We will do it on node.js. Moreover,
node.js will request rbac via api, and take responses directly from the database.
maksim92 Maksim @maksim92 Can
you explain in more detail how you implemented this instruction
https://www.pvsm.ru/ajax/191782
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question