-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to retrieve cookie from $request parametr if it's a string? #954
Comments
What's your version of workerman? 4.x workerman/Protocols/Websocket.php Lines 445 to 460 in f7c9667
5.x workerman/src/Protocols/Websocket.php Lines 386 to 394 in c9e4100
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this example
And when i'm trying to use any method on $request like
$request->cookie()
i keep getting error like "Error: Call to a member function cookie() on string". Is there a build in parser for request or do i need to handle it myself?When i worked with SSE, $request seems to be normal (not string).
The text was updated successfully, but these errors were encountered: