Skip to content

調整聊天訊息格式 #274

Closed
Closed
@bxbdev

Description

@bxbdev
// 前端發送
{
  "type": "CHAT_MESSAGE",
  "data": {
     "from": {
      "id": String,
      "nickname": String
    },
     "content": String,
    "target": "ROOM_ROOMID" | "LOBBY" | ...
  }
}
// 前端接收
{
  "type": "CHAT_MESSAGE",
  "data": {
     "from": "SYSTEM" | "user": {
      "id": String,
      "nickname": String
     },
     "content": String,
     "target": "ROOM_ROOMID" | "LOBBY" | ...
     "timestamp": Date
  }
}

Metadata

Metadata

Assignees

Labels

refactorrefactor the changes already merged.sprint 9

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions