[mirotalk] - test transport websocket
This commit is contained in:
@@ -73,6 +73,7 @@ if (isHttps) {
|
||||
*/
|
||||
io = new Server({
|
||||
maxHttpBufferSize: 1e7,
|
||||
transports: ['websocket'],
|
||||
}).listen(server);
|
||||
|
||||
// console.log(io);
|
||||
|
||||
+4
-4
@@ -642,12 +642,12 @@ function initClientPeer() {
|
||||
}
|
||||
|
||||
console.log('Connecting to signaling server');
|
||||
signalingSocket = io(signalingServer);
|
||||
// signalingSocket = io(signalingServer);
|
||||
|
||||
// Disable the HTTP long-polling transport
|
||||
// signalingSocket = io(signalingServer, {
|
||||
// transports: ['websocket'],
|
||||
// });
|
||||
signalingSocket = io(signalingServer, {
|
||||
transports: ['websocket'],
|
||||
});
|
||||
|
||||
const transport = signalingSocket.io.engine.transport.name; // in most cases, "polling"
|
||||
console.log('Connection transport', transport);
|
||||
|
||||
Reference in New Issue
Block a user