X-Git-Url: https://git.wh0rd.org/?p=chrome-ext%2Fmusic-player-client.git;a=blobdiff_plain;f=main.js;h=5b05cee5e2c101192829762c3b542f40b49f9d86;hp=26d0bc7ae4bd7eb1ceb5ff5375500b3e4a051a18;hb=e9706fb8f28daa5e6b17f335c20adb6112321119;hpb=17ac93ed65c5212d5cf6ecbac17b718738d82c00 diff --git a/main.js b/main.js index 26d0bc7..5b05cee 100644 --- a/main.js +++ b/main.js @@ -14,6 +14,10 @@ TcpClientSender.prototype.send = function(data, cb) { 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);