Git Product home page Git Product logo

laravel-im's Introduction

Build Status Total Downloads Latest Stable Version License

关于项目

基于Laravel框架,结合Gateway-Worker实现的IM系统(陆续更新中)

现已完成功能

【长连接接口】

1,用户认证(基于ws交互)
接口访问地址:ws://127.0.0.1:2346
请求参数格式:

{
	"action": "login",
	"token": "11",
	"user_id": "11",
}

用户认证通过会检测用户是否有离线消息,有离线消息的话,会推送离线消息给用户

2,一对一聊天
接口访问地址:ws://127.0.0.1:2346
请求参数格式:

{
	"action": "single_chart",
	"token": "22",
	"user_id": "12",
        "to_user_id":"11",
        "message":"你好,IM"
}
支持消息离线发送,上线通知

【短连接接口】

1,好友添加请求
/api/addFriends
请求参数:user_id, friend_user_id
resful 格式返回结果

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.