Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.listen(serverPort);
}
// Set log level according to debugMode, on production, log level is on error only
var ioOpts;
if (debugMode) {
ioOpts = { 'log level': 3 };
} else {
ioOpts = { 'log level': 0 };
}
var socketServer = io.listen(webServer, ioOpts);
// Set up easyrtc specific options
easyrtc.setOption('demosEnable', false);
easyrtc.setOption('updateCheckEnable', false);
// If debugMode is enabled, make sure logging is set to debug
if (debugMode) {
easyrtc.setOption('logLevel', 'debug');
}
// Use appIceServers from settings.json if provided. The format should be the same
// as that used by easyrtc (http://easyrtc.com/docs/guides/easyrtc_server_configuration.php)
var iceServers = nconf.get('appIceServers');
if (iceServers !== undefined) {
easyrtc.setOption('appIceServers', iceServers);
} else {
easyrtc.setOption('appIceServers', [
{
url: 'stun:stun.l.google.com:19302'
},
var ioOpts;
if (debugMode) {
ioOpts = { 'log level': 3 };
} else {
ioOpts = { 'log level': 0 };
}
var socketServer = io.listen(webServer, ioOpts);
// Set up easyrtc specific options
easyrtc.setOption('demosEnable', false);
easyrtc.setOption('updateCheckEnable', false);
// If debugMode is enabled, make sure logging is set to debug
if (debugMode) {
easyrtc.setOption('logLevel', 'debug');
}
// Use appIceServers from settings.json if provided. The format should be the same
// as that used by easyrtc (http://easyrtc.com/docs/guides/easyrtc_server_configuration.php)
var iceServers = nconf.get('appIceServers');
if (iceServers !== undefined) {
easyrtc.setOption('appIceServers', iceServers);
} else {
easyrtc.setOption('appIceServers', [
{
url: 'stun:stun.l.google.com:19302'
},
{
url: 'stun:stun.sipgate.net'
},
{
.createServer(tubertcApp)
.listen(serverPort);
}
// Set log level according to debugMode, on production, log level is on error only
var ioOpts;
if (debugMode) {
ioOpts = { 'log level': 3 };
} else {
ioOpts = { 'log level': 0 };
}
var socketServer = io.listen(webServer, ioOpts);
// Set up easyrtc specific options
easyrtc.setOption('demosEnable', false);
easyrtc.setOption('updateCheckEnable', false);
// If debugMode is enabled, make sure logging is set to debug
if (debugMode) {
easyrtc.setOption('logLevel', 'debug');
}
// Use appIceServers from settings.json if provided. The format should be the same
// as that used by easyrtc (http://easyrtc.com/docs/guides/easyrtc_server_configuration.php)
var iceServers = nconf.get('appIceServers');
if (iceServers !== undefined) {
easyrtc.setOption('appIceServers', iceServers);
} else {
easyrtc.setOption('appIceServers', [
{
url: 'stun:stun.l.google.com:19302'
// Set up easyrtc specific options
easyrtc.setOption('demosEnable', false);
easyrtc.setOption('updateCheckEnable', false);
// If debugMode is enabled, make sure logging is set to debug
if (debugMode) {
easyrtc.setOption('logLevel', 'debug');
}
// Use appIceServers from settings.json if provided. The format should be the same
// as that used by easyrtc (http://easyrtc.com/docs/guides/easyrtc_server_configuration.php)
var iceServers = nconf.get('appIceServers');
if (iceServers !== undefined) {
easyrtc.setOption('appIceServers', iceServers);
} else {
easyrtc.setOption('appIceServers', [
{
url: 'stun:stun.l.google.com:19302'
},
{
url: 'stun:stun.sipgate.net'
},
{
url: 'stun:217.10.68.152'
},
{
url: 'stun:stun.sipgate.net:10000'
},
{
url: 'stun:217.10.68.152:10000'
}
]);
var socketServer = io.listen(webServer, ioOpts);
// Set up easyrtc specific options
easyrtc.setOption('demosEnable', false);
easyrtc.setOption('updateCheckEnable', false);
// If debugMode is enabled, make sure logging is set to debug
if (debugMode) {
easyrtc.setOption('logLevel', 'debug');
}
// Use appIceServers from settings.json if provided. The format should be the same
// as that used by easyrtc (http://easyrtc.com/docs/guides/easyrtc_server_configuration.php)
var iceServers = nconf.get('appIceServers');
if (iceServers !== undefined) {
easyrtc.setOption('appIceServers', iceServers);
} else {
easyrtc.setOption('appIceServers', [
{
url: 'stun:stun.l.google.com:19302'
},
{
url: 'stun:stun.sipgate.net'
},
{
url: 'stun:217.10.68.152'
},
{
url: 'stun:stun.sipgate.net:10000'
},
{
url: 'stun:217.10.68.152:10000'
{
url: 'stun:stun.sipgate.net'
},
{
url: 'stun:217.10.68.152'
},
{
url: 'stun:stun.sipgate.net:10000'
},
{
url: 'stun:217.10.68.152:10000'
}
]);
}
easyrtc.listen(tubertcApp, socketServer);