Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Created by massi on 30/08/15.
*/
var io=require('socket.io-client');
var socket= io.connect('http://localhost:3000');
console.log("GET BrowseLibrary\n\n");
socket.emit('unInstallPlugin', { category:'music_services',name:''});
socket.on('installPluginStatus',function(data)
{
console.log(data);
//console.log(JSON.parse(data));
});
#!/bin/node
var io=require('socket.io-client');
var socket= io.connect('http://localhost:3000');
socket.emit('getState', '');
socket.on('pushState',function(data)
{
console.log(data);
process.exit()
});
/**
* Created by massi on 30/08/15.
*/
var io=require('socket.io-client');
var socket= io.connect('http://localhost:3000');
socket.emit('setBackgrounds',{name:'Morning',path:'morning.jpg'});
socket.on('pushBackgrounds',function(data)
{
console.log(data);
//console.log(JSON.parse(data));
});
/**
* Created by massi on 30/08/15.
*/
var io=require('socket.io-client');
var socket= io.connect('http://localhost:3000');
console.log("GET BrowseLibrary\n\n");
socket.emit('preUninstallPlugin', { category:'music_service',name:'spop'});
socket.on('openModal',function(data)
{
console.log(data);
//console.log(JSON.parse(data));
});
#!/bin/node
var io=require('socket.io-client');
var socket= io.connect('http://localhost:3000');
var volume = Number(process.argv.slice(2));
socket.emit('volume', volume);
socket.on('pushState',function(data)
{
console.log('Volume is now: '+data.volume);
process.exit()
});