Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Conversation

@netdown
Copy link
Contributor

@netdown netdown commented Aug 13, 2019

Hi,
I may be wrong with this, the environment is new for me.

When I tried to implement authentication in websocket connection using the provided middleware, I ran into the problem that the request variable in the guard did not contain the parameters I sent (and was available in the websocket connect event).
I'm not sure why this is needed, but after like a hour I found out that I can set the request directly for the guard in the middleware, only by adding: $this->auth->setRequest($request).

I know that the middleware is only a boilerplate, but this may save hours for others.

@albertcht
Copy link
Member

Hi @netdown ,

Thanks for you pull request.

@albertcht albertcht merged commit 9b2d2c1 into swooletw:master Aug 25, 2019
@lilianjin
Copy link
Contributor

@albertcht Hi, This does not solve the problem, how can I get users who are above laravel5.8?

@netdown
Copy link
Contributor Author

netdown commented Jan 27, 2020

@lilianjin What is you problem especially? What do you mean by users above 5.8?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants