Coder Social home page Coder Social logo

luv-server's Introduction

luv-server

  • luv is an Instant Messaging app. Here is the server part.
  • Server applications are based on Vert.x.

luv-server's People

Contributors

hiwangzi avatar

Watchers

 avatar  avatar

luv-server's Issues

客户端-服务端之间通信数据格式

格式参考

{
  //2.修改channel(客户端-服务端)
  "header": {
    "topic": "channel.patch.4d2db3e6-b477-450b-ba3a-6ed30c1319d6", //REST
    "id": "5b88f7bc-c42f-4c48-9ddf-019cc985cc41" //用于实现请求-响应的对应
  },
  "payload": {
    "channelName": "new"
  }
},

{
  //2.修改channel(服务端-客户端)
  "header": {
    "topic": "channel.patch.4d2db3e6-b477-450b-ba3a-6ed30c1319d6",
    "id": "5b88f7bc-c42f-4c48-9ddf-019cc985cc41",
    "code": 200 //响应中包含该字段表示结果,参考HTTP状态码语义
  },
  "payload": {} //尽可能减少数据量
}
  • 注意:
    • 尽可能减少数据
    • header, payload 格式固定
    • 响应之中需要包含 code 表示结果

反省记录

Channel

  • CHANNEL_ADD 同时需要在 account_channel_sync 中增加数据
  • CHANNEL_GET
  • CHANNEL_SYNC_RETRIEVE
  • CHANNEL_SYNC_UPDATE
  • CHANNEL_SYNC_DELETE

线路图

暂时收工,道且长~

  • 20180530

    • 前端 SDK 实现
    • 初版界面
  • 20180524

    • 消息推送
    • account-relationship
    • account
  • 20180523

    • channel-message-sync
  • 20180519

    • message
    • Vue 快速入门
  • 20180517

    • channel
  • 20180513

    • 完成「客户端-服务端」之间数据格式定义

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.