Skip to content

Instantly share code, notes, and snippets.

@black--cat
black--cat / xmmsclienttest.js
Last active December 16, 2015 18:19
better solution? I want to observe the playlist for changes. how would i do this without setinterval? In my opinion the best way is to wait for the IPC socket if something happened. Is this possible?
var xmmsclient = require('xmmsclient'),
util = require('util')
var client = new xmmsclient.Client('blackcat');
client.onconnect = function () {
console.log("Connected!")
var oldID
setInterval(function () {