Answer the question
In order to leave comments, you need to log in
How to get data about Yii authorized user in Websocket?
I use https://github.com/walkor/Workerman
In conjunction with Yii2
I need to do the following: so that the server can determine whether the user is authorized or not and get data about him, for example login, but ... the web socket is launched via the console . and in kjonsol the user is not authorized, he is authorized in web.
How it is possible to implement it?
Passing data about the user (of type id) over the socket is not an option.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question