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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5a945-44916.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5a945-44916.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?