GithubHelp home page GithubHelp logo

my-backed's Introduction

我的

参考

  • packet => WsPacket, HttpPacket, TcpPackert
  • command,
  • message
  • responseBody
  • protocol

protocol 就是 http/websocket/tcp 等这些东西 packet 可以理解是,传输消息格式,如 json/msgpack 等 message 可以理解是消息实体

{
  "code": "111",
  "message": "info",
  "body": [],
  "version": 1
}
op: xx
version: 1
message:
  from: minbaby
  to: 'babab'
  type: chat/error/groupchat/headline/normal
  subject: title
  body: are you ok?
# req
iq:
  from: minbaby
  id: ???
  type: get
  query:fasdfdsa
# res
iq:
  from: minbaby
  id: ???
  type: result
  query:
    - item:
        jid: 1
        name: xxx
        group: friends
presence:
  from: minbaby
  to: abab
  type: unavailable
  status: gone home
{
  "id": "1",
  "delivery_data": "2",
  "deletion_date": "3",
  "text": "yes",
  "sender_id": "a",
  "group_id": "b",
  "recipient_id": "c",
  "records": "d"
}

heartbeat

{"op":7,"version":"v1"}

message

{"op":512,"version":"v1"}

C1: client1 C2: client2 S1: server1

C1 -> 发送消息, 问C2在线吗 -> S1 -> 看了以下,回复消息,C2在线 C1-> 发送消息给C2 -> S1 -> 看了一下C2在线 -> 给C2发送消息说 “C1 给你发了一条消息”


https://github.com/winlion/chat/blob/e6fe40db51/ctrl/chat.go

/**
消息发送结构体
1、MEDIA_TYPE_TEXT
{id:1,userid:2,dstid:3,cmd:10,media:1,content:"hello"}
2、MEDIA_TYPE_News
{id:1,userid:2,dstid:3,cmd:10,media:2,content:"标题",pic:"http://www.baidu.com/a/log,jpg",url:"http://www.a,com/dsturl","memo":"这是描述"}
3、MEDIA_TYPE_VOICE,amount单位秒
{id:1,userid:2,dstid:3,cmd:10,media:3,url:"http://www.a,com/dsturl.mp3",anount:40}
4、MEDIA_TYPE_IMG
{id:1,userid:2,dstid:3,cmd:10,media:4,url:"http://www.baidu.com/a/log,jpg"}
5、MEDIA_TYPE_REDPACKAGR //红包amount 单位分
{id:1,userid:2,dstid:3,cmd:10,media:5,url:"http://www.baidu.com/a/b/c/redpackageaddress?id=100000","amount":300,"memo":"恭喜发财"}
6、MEDIA_TYPE_EMOJ 6
{id:1,userid:2,dstid:3,cmd:10,media:6,"content":"cry"}
7、MEDIA_TYPE_Link 6
{id:1,userid:2,dstid:3,cmd:10,media:7,"url":"http://www.a,com/dsturl.html"}
7、MEDIA_TYPE_Link 6
{id:1,userid:2,dstid:3,cmd:10,media:7,"url":"http://www.a,com/dsturl.html"}
8、MEDIA_TYPE_VIDEO 8
{id:1,userid:2,dstid:3,cmd:10,media:8,pic:"http://www.baidu.com/a/log,jpg",url:"http://www.a,com/a.mp4"}
9、MEDIA_TYPE_CONTACT 9
{id:1,userid:2,dstid:3,cmd:10,media:9,"content":"10086","pic":"http://www.baidu.com/a/avatar,jpg","memo":"胡大力"}
*/

my-backed's People

Contributors

dependabot-preview[bot] avatar minbaby avatar

Watchers

 avatar

my-backed's Issues

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/psr/http-message%2468b21436fdbcdcfbc8d4acfe47f0dfc035d1407a592f2e70ca6bdacaf030858a.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/symfony/polyfill-php70%24befe6768158d0f28f8b1d29ec6fe4321c41b548f53263d08e8a294a4ed11c949.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2020-01%24957c584d59aa03b25598f173eb331f3256a958c57c7beeec0edc887999c7d0f7.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2020-01%241bbe401e14a1c412514e9ecc67dcadff32e54fecc47c1b6933cf5215ea5339ce.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/symfony/polyfill-ctype%2410013c44035e06a6f25c6c68be9467e0de64cd504ec4f02eaf8e4bd270abbe1b.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2019%24f5895bab19570bcdc1131a2a172341c3e5f690074ba60487b633610def537180.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-latest%24427f53a5e6c72011b0aff2786f4de2a97105987e83405600cdcb7b0d8b90f48f.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2019%24c2e33b16607d88cfded0040a858ffba1a10b7865ec3dd7162fe0f16f9202156a.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2020-01%241d1d199122dc4fdd99045476b88103d8c629fd398fe73df911acab1abaa8a3ad.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-latest%249cc3b5e1518f1be8e13bc8cff6e7c94c085c060fe7a4c88dce32aeaa453af276.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-2019%2469496c660d2573961da20585f69e9a7aefd690aad009689b66f945d74e502fd5.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/provider-latest%246afdf362a4b2bfdfdf969c2b104ead944bfc364bdd7d0bcdceb25f923b96ee1e.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

The "https://mirrors.aliyun.com/composer/p/symfony/console%2470c96797b36c7c8e462f400bacb7ec21acf0c4f6ef0cb08ebd20dc5393e0ea30.json" file could not be downloaded (HTTP/1.1 404 Not Found)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

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.