[mirotalksfu] - test websocket
هذا الالتزام موجود في:
@@ -32,6 +32,7 @@ const options = {
|
|||||||
const httpsServer = https.createServer(options, app);
|
const httpsServer = https.createServer(options, app);
|
||||||
const io = require('socket.io')(httpsServer, {
|
const io = require('socket.io')(httpsServer, {
|
||||||
maxHttpBufferSize: 1e7,
|
maxHttpBufferSize: 1e7,
|
||||||
|
transports: ['websocket'],
|
||||||
});
|
});
|
||||||
const host = 'https://' + 'localhost' + ':' + config.listenPort; // config.listenIp
|
const host = 'https://' + 'localhost' + ':' + config.listenPort; // config.listenIp
|
||||||
const announcedIP = config.mediasoup.webRtcTransport.listenIps[0].announcedIp;
|
const announcedIP = config.mediasoup.webRtcTransport.listenIps[0].announcedIp;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ let wbPop = [];
|
|||||||
|
|
||||||
let isButtonsVisible = false;
|
let isButtonsVisible = false;
|
||||||
|
|
||||||
const socket = io();
|
const socket = io({ transports: ['websocket'] });
|
||||||
|
|
||||||
function initClient() {
|
function initClient() {
|
||||||
if (!DetectRTC.isMobileDevice) {
|
if (!DetectRTC.isMobileDevice) {
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم