V
V
Vladislav2020-07-29 16:33:09
Yii
Vladislav, 2020-07-29 16:33:09

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

1 answer(s)
M
Maxim, 2020-07-29
@cr1gger

Use a token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question