PUBNUB操作经常抛出PNTimeoutCategory

问题描述 投票:0回答:1

我正在聊天应用程序中使用PubNub服务器。它工作正常,但是在执行PubNub操作(例如订阅,取消订阅,发布等)时,经常会出现PNTimeoutCategory错误。如何处理此问题?

 pubnub = new PubNub({
     authKey: auth_key,
     publishKey: publish_key,
     subscribeKey: subscribe_key,
     ssl: true,
     uuid: provider_id,
     logVerbosity: __DEV__,
 });

并且我订阅如下频道:

pubnub.unsubscribe({
    channels
});
ios react-native pubnub
1个回答
0
投票

要订阅频道,您正在调用unsubscribe()。那是错字吗?

© www.soinside.com 2019 - 2024. All rights reserved.