Easemob.im.config = {
    /*
        The global value set for xmpp server
    */
    xmppURL: 'im-api.sandbox.easemob.com',
    /*
        The global value set for Easemob backend REST API
        "http://a1.easemob.com"
    */
    apiURL: 'https://a1.sdb.easemob.com',
    /*
        连接时提供appkey
    */
    appkey: "easemob-demo#chatdemoui",
    /*
     * 是否使用https 
     */
    https : true,
    /*
     * 是否使用多resource
     */
    multiResources: false
}

Easemob.im.config = {
    /*
        The global value set for xmpp server
    */
    xmppURL: 'im-api.sandbox.easemob.com',
    /*
        The global value set for Easemob backend REST API
        "http://a1.easemob.com"
    */
    apiURL: 'https://a1.sdb.easemob.com',
    /*
        连接时提供appkey
    */
    appkey: "easemob-demo#chatdemoui",
    /*
     * 是否使用https 
     */
    https : true,
    /*
     * 是否使用多resource
     */
    multiResources: false

}

update for test