J
J
John-Galt2016-12-08 14:41:37
JavaScript
John-Galt, 2016-12-08 14:41:37

Ratchet. How to implement correspondence between two registered users using Ratchet?

How to implement correspondence between two registered users using Ratchet (and it is desirable to do this safely, otherwise I have one option, but this is more likely not a solution, but an unsafe crutch). The documentation has an example of how to implement correspondence between all users (or rather, chat participants), but I could not find something how to implement between 2 specific users.

There are various chats with rooms, maybe the solution would be to implement a separate room for each pair of enumerators (a separate channel for correspondence). But I didn’t find how to do this either ((

How can I understand which registered user in YII2 is a chat participant?
How can I match them by id?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-12-08
@webinar

And take ready-made not ice?
https://github.com/joni-jones/yii2-wschat - chat for yii2 on sockets and Ratchet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question