package com.ym.im.entity.base;

/**
 * @author: JJww
 * @Date:2019-05-17
 */
public class NettyConstant {

    /**
     * websocket标识
     */
    public static final String CS = "/cs";

    /**
     * 最大线程量
     */
    public static final Integer MAX_THREADS = 1024;

    /**
     * 数据包最大长度
     */
    public static final Integer MAX_FRAME_LENGTH = 65535;

    /**
     * redis 聊天记录KEY
     */
    public static final String MSG_KEY = "MSG: ";

    /**
     * 客服socket 绑定的用户列表
     */
    public static final String STAFF_USERIDS_KEY = "staff.userIds: ";

    /**
     * 用户socket 相关信息
     */
    public static final String IM_USERS = "im.users";


    /**
     * 重发次数
     */
    public static final Integer RETRY_COUNT = 3;

}


