Using Workerman to Push Data to Clients in Other Projects
Question:
I have a regular web project and I want to use Workerman's interface to push data to clients in this project.
Answer:
For Workerman, you can refer to the following links:
-
Channel component push example (supports multiple processes/server clusters, requires downloading the Channel component)
-
Push based on Worker (single process, the simplest)
For webman, refer to the link below:
For GatewayWorker, refer to the link below:
- Push through GatewayWorker in other projects (supports multiple processes/server clusters, supports grouping, multicasting, and sending to individual clients)
For PHPSocket.IO, refer to the link below:
- Web message push (default single process, based on socket.io, best browser compatibility)