我正在聊天应用程序中使用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
});
要订阅频道,您正在调用unsubscribe()。那是错字吗?