openswoole / ext-openswoole

Programmatic server for PHP with async IO, coroutines and fibers
https://openswoole.com
Apache License 2.0
808 stars 51 forks source link

Do you have a working example of Coroutine HTTP client used as a websocket client ? #340

Closed vianeostech closed 1 year ago

vianeostech commented 1 year ago
  1. What did you do? If possible, provide a simple script for reproducing the error.
    
    I would like to use a Coroutine HTTP client as a websocket, from the documentation, it seems to be possible.
2. What did you expect to see?
3. What did you see instead?
4. What version of OpenSwoole are you using (show your `php --ri openswoole`)?
5. What is your machine environment used (show your `uname -a` & `php -v` & `gcc -v`) ?


You can also try the following OpenSwoole support channels:

* [Documentation](https://openswoole.com/docs) - Documentation for Open Swoole
* [Slack](https://goo.gl/forms/wooTTDmhbu30x4qC3) - Slack channel of Open Swoole
* [Discord](https://discord.gg/5QC57RNPpw) - Discord server of Open Swoole
vianeostech commented 1 year ago

Openswoole website examples have got some errors that I fixed on my side.