package com.artfess.base.constants;

/**
 * @Description: Websocket常量类
 * @author: taoyan
 * @date: 2020年03月23日
 */
public interface WebsocketConst {


    /**
     * 消息json key:cmd
     */
    public String MSG_CMD = "cmd";

    /**
     * 消息json key:msgId
     */
    public String MSG_ID = "msgId";

    /**
     * 消息json key:msgTxt
     */
    public String MSG_TXT = "msgTxt";

    /**
     * 消息json key:userId
     */
    public String MSG_USER_ID = "userId";

    /**
     * 消息类型 heartcheck
     */
    public String CMD_CHECK = "heartcheck";

    /**
     * 消息类型 topic 系统通知
     */
    public String CMD_TOPIC = "topic";

    /**
     * 消息类型 dict 字典更新通知
     */
    public String CMD_DICT = "dict";

    /**
     * 消息类型 user 用户消息
     */
    public static final String CMD_USER = "user";

}
