1 Star 0 Fork 0

vy-php / my_im

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

说明

imi 框架:https://www.imiphp.com

这是一个 WebSocket、Http 共存服务的示例

WebSocket:ws://127.0.0.1:8081/ws

Http:http://127.0.0.1:8081/http://127.0.0.1:8081/api

test-html/index.html 文件可以连接 WebSocket 进行调试

安装

方法一

  • git 拉取下本项目

  • 在本项目目录中,执行命令:composer update

方法二

  • composer create-project imiphp/project-websocket

启动命令

在本项目目录中,执行命令:vendor/bin/imi server/start

权限

.runtime 目录需要有可写权限 <<<<<<< HEAD MY_IM

接口:

登录 http://127.0.0.1:8081/register/login?username=test&password=123456

有待优化:

1、控制器层的查询、业务处理尽量改写到业务层
2、业务层尽量使用注入、调用的写法
3、根据具课程优化、整理现有代码   

存在问题(有待长期整理学习):

1、记录在线状态(用redis记录数据量大时,要批量处理,造成redis清除麻烦),以及记录在线状态方法
2、redis  记录 session 问题

=======

c7483f1e20ca7da20604f858e4b82b4000d8cae2

Repository Comments ( 0 )

Sign in to post a comment

About

使用基于 swoole 的 imi 框架搭建的建议 PC 聊天室 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/vy-edu/my_im.git
git@gitee.com:vy-edu/my_im.git
vy-edu
my_im
my_im
master

Search