|
@@ -268,7 +268,7 @@
|
|
if(!this.hasError(_data)) {
|
|
if(!this.hasError(_data)) {
|
|
this.myMediaServiceToken = _data.data;
|
|
this.myMediaServiceToken = _data.data;
|
|
this.channel = this.inMeetingForClient.clientMediaServiceRoomIdentifier;
|
|
this.channel = this.inMeetingForClient.clientMediaServiceRoomIdentifier;
|
|
- this.registerSocket();
|
|
|
|
|
|
+ this.initMediaService();
|
|
}
|
|
}
|
|
}, 'json');
|
|
}, 'json');
|
|
}
|
|
}
|
|
@@ -288,7 +288,11 @@
|
|
sessionKey: '{{$performer->session_key}}'
|
|
sessionKey: '{{$performer->session_key}}'
|
|
})
|
|
})
|
|
);
|
|
);
|
|
- this.initMediaService();
|
|
|
|
|
|
+ window.setInterval(() => {
|
|
|
|
+ this.socketClient.send("/app/heartbeat", {},
|
|
|
|
+ JSON.stringify({sessionKey: '{{ request()->cookie('sessionKey') }}'})
|
|
|
|
+ );
|
|
|
|
+ }, 5000);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
initSocketListeners: function() {
|
|
initSocketListeners: function() {
|
|
@@ -765,7 +769,7 @@
|
|
// end: other/misc
|
|
// end: other/misc
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
-
|
|
|
|
|
|
+ this.registerSocket();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
})();
|
|
})();
|