Groove Basin command-line remote control and Node.js module.
This project also serves as an example for writing a Groove Basin client using the Groove Basin Protocol Specification.
Usage: gbremote [options] command [args]
Options With Defaults:
--server http://127.0.0.1:16242/
Commands:
help
toggle
pause
play
stop
next
prev
status
stream
importurl
var gbremote = require('gbremote');
var url = require('url');
var gbr = gbremote.createClient(url.parse("http://127.0.0.1:16242"));
gbr.on('connect', function() {
gbr.sendMessage("play");
gbr.close();
});
gbr.connect();
Creates a GrooveBasinRemote
instance.
options
:
protocol
: (optional) One of:ws:
,wss:
,http:
,https:
. Defaults tohttp:
. It doesn't matter whether you use ws or http, it's just distinguishing between secure and non-secure.hostname
: (optional) Defaults to 127.0.0.1.port
: (optional) Defaults to 16242.
function (err) { }
function (name, args) { }