取消监听用户上下线状态变化 - GoEasy IM

取消监听用户上下线状态变化

JavaScript

        //取消监听上下线提醒
        im.unsubscribeUserPresence({
            userId:"user001",
            onSuccess: function () { 
                console.log("Unsubscribe user presence successfully."); 
            },
            onFailed: function (error) { 
                console.log("Failed to unsubscribe user presence, code:" + error.code + " content:" + error.content);
            }
        });

取消监听群成员上下线状态变化

JavaScript


        //取消监听上下线提醒
        im.unsubscribeGroupPresence({
            groupId:"group001",
            onSuccess: function () { 
                console.log("Unsubscribe group presence successfully."); 
            },
            onFailed: function (error) { 
                console.log("Failed to unsubscribe group presence, code:" + error.code + " content:" + error.content);
            }
        });

results matching ""

    No results matching ""