Skip to content
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

websocket #32

Open
tudoavinfo opened this issue Feb 5, 2022 · 5 comments
Open

websocket #32

tudoavinfo opened this issue Feb 5, 2022 · 5 comments

Comments

@tudoavinfo
Copy link

Connection refused {"exception":"[object] (Exception(code: 0): Connection refused at /var/www/ltdempire/vendor/workerman/globaldata/src/Client.php:69)

@wooly-booly
Copy link

+1 same error

@zhouaini528
Copy link
Owner

@tudoavinfo @wooly-booly Is there a more detailed code example?

@tudoavinfo
Copy link
Author

solved it was bad formatting of the sent data

@tudoavinfo
Copy link
Author

But on the server I have this error:

`Call to undefined function GuzzleHttp\Psr7\uri_for()

at public_html/vendor/ratchet/pawl/src/Connector.php:126
122▕ * @throws \InvalidArgumentException
123▕ * @return \Psr\Http\Message\RequestInterface
124▕ */
125▕ protected function generateRequest($url, array $subProtocols, array $headers) {
➜ 126▕ $uri = gPsr\uri_for($url);
127▕
128▕ $scheme = $uri->getScheme();
129▕
130▕ if (!in_array($scheme, ['ws', 'wss'])) {`

@zhouaini528
Copy link
Owner

But on the server I have this error:

`Call to undefined function GuzzleHttp\Psr7\uri_for()

at public_html/vendor/ratchet/pawl/src/Connector.php:126 122▕ * @throws \InvalidArgumentException 123▕ * @return \Psr\Http\Message\RequestInterface 124▕ */ 125▕ protected function generateRequest($url, array $subProtocols, array $headers) { ➜ 126▕ $uri = gPsr\uri_for($url); 127▕ 128▕ $scheme = $uri->getScheme(); 129▕ 130▕ if (!in_array($scheme, ['ws', 'wss'])) {`

I don't know the reason for this error. I used GuzzleHttp. I guess if it is a problem with the PHP environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants