The websocket server of swoole can push messages to chat rooms with h5websocket at the front end. However, the tcpserver of swoole and tcpclient are applicable to some scenarios. For specific examples, I have only performed web development, I am not very familiar with game and desktop software development. The websocket server of swoole can push messages to the h5 websocket at the front end to form a chat room. However, what application scenarios are applicable to the tcp server and tcp client of swoole, I have only done web development, but I am not very familiar with game and desktop software development.
Reply content:
The websocket server of swoole can push messages to the h5 websocket at the front end to form a chat room. However, what application scenarios are applicable to the tcp server and tcp client of swoole, I have only done web development, but I am not very familiar with game and desktop software development.
Swoole_server is directly used as the server, which can replace the traditional server implemented in C/C ++. Swoole_client can be used in traditional apache-php to directly connect to other servers.