聊天:增加私聊部分逻辑

测试:增加测试脚本,减少socket断开的打印
This commit is contained in:
liangtongchuan
2021-03-04 18:27:39 +08:00
parent d4561c2e3d
commit 0bb4caf291
10 changed files with 232 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
export const MSG_CODE_LEN = 8;
export const MSG_STATUS = {
NORMAL: 0,
BLOCKED: 1
}
export const MSG_TYPE = {
TEXT: 0,
RICH_TEXT: 1,
IMG: 2
}
export const ON_MSG_ROUTE = 'onMessage';