Description
When calling
appcd exec /jdk/latest
it returns
404 [object Object]
it should print the plugin info to the console. It looks like the call is going through the error handler of the request made in the exec command
const ws = new WebSocket('ws://127.0.0.1:1732', {
headers: {
'User-Agent': __filename
}
})
.on('message', (msg, flags) => {
console.log(msgpack.decode(msg));
console.log(flags);
// console.log(util.inspect(flags.binary ? msgpack.decode(msg) : JSON.parse(msg), false, null, true));
// process.exit(0);
})
.on('close', () => console.log('CLOSED'))
.on('open', () => ws.send(JSON.stringify({ version: '1.0', path: '/jdk/latest/', id: Date.now(), type: 'subscribe' })));
No comments