聊天:增加私聊部分逻辑
测试:增加测试脚本,减少socket断开的打印
This commit is contained in:
14
shared/consts/constModules/chatConst.ts
Normal file
14
shared/consts/constModules/chatConst.ts
Normal 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';
|
||||
Reference in New Issue
Block a user