Websocket webRTC appRTC,通话间隔约2分钟后,两次通话之间的连接将自动终止(ISBX演示)

Websocket webRTC appRTC,通话间隔约2分钟后,两次通话之间的连接将自动终止(ISBX演示),websocket,webrtc,apprtc,Websocket,Webrtc,Apprtc,我正在使用ISBX的git库和swift应用程序中的集成视频通话功能,一切正常,只是主要的拦截器在大约2分钟后连接自动终止,出现以下错误:- WebSocket已关闭,代码为:1001原因:遇到的流结束为干净:0 详细错误 2016-07-18 12:44:20.687 testOttaApp QA[527:74428]WebSocket已关闭,代码为1001原因:遇到的流端为干净:0 2016-07-18 12:44:20.687 testOttaApp QA[527:74428]C->RS:

我正在使用ISBX的git库和swift应用程序中的集成视频通话功能,一切正常,只是主要的拦截器在大约2分钟后连接自动终止,出现以下错误:-

WebSocket已关闭,代码为:1001原因:遇到的流结束为干净:0

详细错误

2016-07-18 12:44:20.687 testOttaApp QA[527:74428]WebSocket已关闭,代码为1001原因:遇到的流端为干净:0

2016-07-18 12:44:20.687 testOttaApp QA[527:74428]C->RS:再见

2016-07-18 12:44:20.687 testOttaApp QA[527:74428]url=

2016-07-18 07:14:21.503 testOttaApp QA[527:16e893000]信息集成CMediaPlatformWrapper.cpp:937

CMediaPlatformWrapper::已调用DevicePropertyChanged

2016-07-18 07:14:21.504 testOttaApp QA[527:16e893000]INFO-MMINTEGRATION CMediaPlatformWrapper.cpp:969 CMediaCallWrapper::fireMediaPlatformEvent()使用类型4调用 断开连接

2016-07-18 07:14:21.514 testOttaApp QA[527:1a05f7000]信息应用程序CUCMConversationsManager.cpp:2348 CUCMConversationsManager::OneEvent()。事件类型:4


2016-07-18 12:44:22.989 testOttaApp QA[527:74428]已从房间服务器注销。

最后,我的一位开发人员解决了此问题

在ARDWebSocketChannel.m类中,他经常对服务器执行ping操作,以避免连接中断

#pragma mark - SRWebSocketDelegate

- (void)webSocketDidOpen:(SRWebSocket *)webSocket {
    NSLog(@"WebSocket connection opened.");
    self.state = kARDWebSocketChannelStateOpen;
    if (_roomId.length && _clientId.length) {
        [self registerWithCollider];
        // Sending autoping to server
        [self startConnectionCheckTimer];
    }
}

// Checking for WSconnection by Sending Scheduled Ping
- (void)startConnectionCheckTimer {
    if (!_timer) {
        _timer = [NSTimer scheduledTimerWithTimeInterval:30.0f
                                                  target:self
                                                selector:@selector(sendPing:)
                                                userInfo:nil
                                                 repeats:YES];
    }
}

- (void)stopConnectionCheckTimer {
    if ([_timer isValid]) {
        [_timer invalidate];
    }
    _timer = nil;
}

- (void)sendPing:(id)sender
{
    if(_socket != nil)
    {

            [_socket sendPing:nil];

    }
}