首页
开发手册
应用中心
工具
用户中心
Swoole Server Development
English
中文简体
English
上一篇
下一篇
The Swoole structure is different from the regular development of php, the server needs to be executed separately, and here it needs to request the database and separate logic processing. #### Swoole's FoundPHP Development In order to simplify the use of users, we have provided the basic framework of the server, optimized the mode of the room concept, optimized the functions of group sending and customized sending, and greatly saved time in the development process. For compatibility and uniformity, we uniformly use cmd for the commands in json. The server returns the command set |CMD Command | Function Description | | --------- | -----:| |welcome | handshake information| |login | login Confirmation| |online | get online list| |come | new user arrival| |history | history message| |message | messages returned by mass mailing| |leave | Normal and abnormal departure| |failed | login verification failed|
client request command |CMD Command | Function Description | | --------- | -----:| |login | log in| |online | get online list| |message | send Message| |speak | no talking|