How to bind Yii 2 + WebSocket?

Hi all. There is the question of how you can link websocket and Yii2? By gugleniya found quite primitive examples (a simple chat without a login). Interested in something more complicated. For example, a user logs in to the website and sending each message to the handler of the socket you need to understand that it's for the user. Does anyone have some examples or maybe someone knows how to use the framework inside the WebSocket handler?
July 2nd 19 at 13:56
2 answers
July 2nd 19 at 13:58
move in the direction of question "How to implement a websocket server in php", not how to do it in Yii. You need to understand that Yii is just a framework for your php applications, so understand how to do it all in pure php, and then as needed connect Yii
How to do it in pure PHP I already have. For example, the same Ratchet. The question is how to associate listeners with Yii - russell_Kr commented on July 2nd 19 at 14:01
July 2nd 19 at 14:00
I too looked ready nothing. I guess it's easier to link using a console controller in yii. All going to try this bundle, but no time.

Find more questions by tags