[QUESTION] How can I communicate between HTTP server and WebSocket Server?
- Dominant language
- PHP
- Stars
- 6.9k
- Forks
- 1.3k
- Avg merge
- 4h 21m
- Merged PRs (30d)
- 4
Description
## Before you submit an issue, please be sure to search through existing issues as well as search through the [documentation](https://hyperf.wiki)
- [x] I've searched all existing issues
- [x] I've read all relevant documentation I could find
### Describe your question
I have my Hyperf application serving both HTTP and WebSocket traffics. The WebSocket maintains a list of client connections in-memory. I would want to have an HTTP endpoint that returns the number of clients that are connected. Is there a way to achieve this without having to store data out of the application (e.g. Redis, MySQL, etc).
I was hoping there is a way the HTTP and the WebSocket server can establish communication since they are basically within the same app. If so, how can I achieve this? If not, what are your recommendations / alternatives for this?
Thank you very much!
Contributor guide
Assessment
This issue has not been assessed yet.