代码拉取完成,页面将自动刷新
# rust 写的消息分发 - - 入门rust瞎撸出来的
## 初始化
127.0.0.1:5001/init
{"idlist":[1,2,3,4,5]}
## 状态
127.0.0.1:5001
127.0.0.1:5001/debug
## 新建队列
127.0.0.1:5001/del_queue
127.0.0.1:5001/add_queue
{"id":1}
## 广播
127.0.0.1:5001/send_all_queue
{"msg":"hello world"}
## 拉消息
127.0.0.1:5001/pull
{"id":1}
## 推消息
127.0.0.1:5001/push
{"id":2,"msg":"hello world"}
## 新建分组
127.0.0.1:5001/new_group
{"group":"chat"}
## 删除分组
127.0.0.1:5001/remove_group
{"group":"chat"}
## 组播
127.0.0.1:5001/send_group_message
{"group":"chat","msg":"hello world"}
## 进入分组
127.0.0.1:5001/add_group_by_id
{"group":"chat","id":3}
## 移出分组
127.0.0.1:5001/del_group_by_id
{"group":"chat","id":1}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。