GithubHelp home page GithubHelp logo

forest-chat's Introduction

##Ocean

基于mqtt协议,netty通讯组件实现的IM

###ocean-chat

基于netty&mqtt的实现,维护管理connection,将业务逻辑通过motan rpc丢到ocean-logic处理

###Frame

###ocean-logic

处理IM具体业务逻辑,db暂用mongo

###ocean-model

基础的model

###ocean-sdk

java sdk demo版

###打开方式 1.启动com.dempe.logic.server.LogicServer(依赖mongodb,注意修改application-mongo.xml配置) 2.启动com.dempe.chat.ChatServer 3.启动com.dempe.ocean.sdk.example.ChatSdkDemo

看到一下日志,ok了

[INFO]2016-09-09 11:50:34,370, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:50:44,182, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:50:54,183, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:51:04,184, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:51:14,184, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:51:24,182, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:51:34,186, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]
[INFO]2016-09-09 11:51:44,185, [MessageThread]ChatSdkDemo.java:31, onFriendMsg topci:f|222,payload:[104, 101, 108, 108, 111]

###说明 项目还在探索中,逻辑正在实现中,处于不可用阶段。

###TODO list 1.connector抽象出来,仅仅维护connection,转发消息,保持轻薄, 2.重构ocean-logic,分离具体的实现,提供可插播的机制,增强扩展性 2.mqtt实现im还有若干问题

forest-chat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forest-chat's Issues

moquette的参照部分能告知么

看到许多mqtt部分的代码参照了moquette的实现,能说一说哪些部分是参照的moquette的么?我正在看moquette的源码,想和你的源码对比参考一下

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.