Want to do this: the device connects to the server through tcp, and the framework uses worker or gateway

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

Jun.17,2021

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

.
Menu