Open SchahinRohani opened 3 years ago
interesting, after reading the wiki and finding out that there is a middleware for sockets to authenticate a user, I have no clue how to authenticate a user while establishing a socket connection. I would be happy if the author could show us an example that demonstrates what the client has to do.
I have same problem
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
php -v
andphp --ri swoole
)config/swoole_http.php
config/swoole_websocket.php
Socket.io-Client v3
routes/websocket.php
I am also using Laravel Sanctum.
What did you expect to see? The authenticated user object
What did you see instead?
Null
How can i achieve, getting the correct user?