K
K
krov1192018-10-10 00:52:16
Yii
krov119, 2018-10-10 00:52:16

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

5 answer(s)
I
Ivan Shumov, 2018-10-10
@krov119

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

A
Andrey K, 2018-10-10
@kuftachev

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.

X
xmoonlight, 2018-10-10
@xmoonlight

swoole, pthreads

D
Dmitry Bay, 2018-10-10
@kawabanga

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.

O
Oleg KlO4kOw, 2019-05-29
@roswel

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 question

Ask a Question

731 491 924 answers to any question