want to achieve: the device connects to the server through tcp, and the server processes it in real time and then forwards the message to a web page in real time (you can use websocket), framework to use worker or gateway, to ask for advice
want to achieve: the device connects to the server through tcp, and the server processes it in real time and then forwards the message to a web page in real time (you can use websocket), framework to use worker or gateway, to ask for advice
there are several ways to do
1. The simplest way is to open a worker process to listen to both tcp, and websocket, so that it is convenient to operate and connect with each other and transfer data in one process
the advantage of http://doc2.workerman.net/mul.
is that it can also be deployed separately, can be multi-process and multi-server cluster, and gatewayWorker provides many interfaces that can be used directly with persistent connections, which is very convenient .
Previous: The "development mode" is still prompted under the production mode.
Next: Error Error while Launching activity during real machine debugging of Android Studio
Program I have tested through the following is the configuration of nginx forwarding I don t understand websocket service I opened a websocket service using gatewayworker Why is http in forwarding if I visit this address directly, he will promp...