pubnub js 重新连接对我不起作用 [英] pubnub js reconnect not working for me

查看:43
本文介绍了pubnub js 重新连接对我不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络聊天客户端,当检测到事件 PNNetworkUpCategory 时,它没有重新连接到 pubnub.

I have a web chat client that is not reconnecting to pubnub when event PNNetworkUpCategory is detected.

SAChat.prototype.start = function() {
var _this = this;
this.pubnub.addListener({
    status: function (statusEvent) {
        if (statusEvent.category === "PNNetworkUpCategory") {
            console.log('PNNetworkUpCategory: SDK detected that network is online.' )
            _this.pubnub.reconnect();
...

有人知道为什么客户不再出现在频道中吗?

Anybody any idea why the client is not appearing again in the channel?

推荐答案

我想帮你解决这个问题 :)

I'd like to help you resolve this one :)

几个问题/请求,如果可以的话:

Few questions/requests, if I may:

  • SDK 版本
  • 您的 PubNub 初始化配置
  • 启用日志详细程度,并共享日志
  • 任何错误的截图
  • 代码片段

期待您的回答.

视频.

这篇关于pubnub js 重新连接对我不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆