this._queue.push(msg);
this._socket.send(msg, function(x) {
_this.log(0x1, 'send: ' + msg + ':', x);
+ if (x.bytesWritten < 0) {
+ _this.log(0x1, 'reconnecting...');
+ _this._socket.reconnect();
+ _this.queue = [msg];
+ _this._socket.send(msg);
+ }
});
}
TcpClientSender.prototype.poll = function() {
this.tcpclient.poll();
}
+TcpClientSender.prototype.reconnect = function() {
+ this.tcpclient.disconnect();
+ this.tcpclient.connect();
+}
function tramp_mpc_recv(data) {
mpc.recv(data);
"manifest_version": 2,
"minimum_chrome_version": "24",
"name": "Music Player Client",
- "version": "2.0",
+ "version": "3.0",
"description": "Control a Music Player Daemon (MPD)",
"icons": {
"128": "images/icon-128x128.png"