Download the PHP package weigot/swoole without Composer
On this page you can find all versions of the php package weigot/swoole. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download weigot/swoole
More information about weigot/swoole
Files in weigot/swoole
Download weigot/swoole
More information about weigot/swoole
Files in weigot/swoole
Please rate this library. Is it a good library?
Informations about the package swoole
基于lumen框架的swoole扩展
公司使用lumen框架做项目较多,所以集合swoole来实现websocket供大家使用
使用文档
环境和依赖
-
"php": ">=7.0"
-
"ext-swoole": "*"
-
"laravel/lumen-framework": ">=5.5"
- "illuminate/redis": "*"
使用方法
1.安装依赖包
2.操作命令
3.使用supervisor守护进程
4.nginx配置
5.前端调用demo
数据结构
- 消息结构
2.服务端action枚举
名称 | 编码 |
---|---|
服务端操作 | 100 |
管理员操作 | 101 |
其他用户操作 | 102 |
用户详情 | 200 |
用户列表 | 201 |
新用户上线 | 202 |
用户下线 | 203 |
发送消息 | 300 |
3.信息类型
名称 | 编码 |
---|---|
文本消息 | text |
图片消息 | img |
状态信息 | state |
4.客户端action枚举
名称 | 编码 |
---|---|
发送消息 | message |
获取自己详情 | info |
请求在线用户列表 | onlineList |
All versions of swoole with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-swoole Version *
laravel/lumen-framework Version >=5.5
illuminate/redis Version *
ext-swoole Version *
laravel/lumen-framework Version >=5.5
illuminate/redis Version *
The package weigot/swoole contains the following files
Loading the files please wait ....