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

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

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

JavaScript

        //取消监听上下线提醒
        var promise = im.unsubscribeUserPresence("user001");

        promise.then(function () {
            console.log("Unsubscribe user presence successfully.");
        }).catch(function (error) {
            console.log("Failed to unsubscribe user presence, code:" + error.code + " content:" + error.content);
        });

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

JavaScript


        //取消监听上下线提醒
        var promise = im.unsubscribeGroupPresence("group001");

        promise.then(function () {
            console.log("Unsubscribe group presence successfully.");
        }).catch(function (error) {
            console.log("Failed to unsubscribe group presence, code:" + error.code + " content:" + error.content);
        });

results matching ""

    No results matching ""