andrewrk / mpd.js

Connect to a music player daemon server, send commands, emit events.
MIT License
89 stars 18 forks source link

Add public API method to disconnect client #20

Open JustBlackBird opened 8 years ago

JustBlackBird commented 8 years ago

This PR is aimed to create a public API method on MpdClient that can close connection.

I know, that I can use just:

client.socket.destroy()

in the app but I believe socket property is a implementation detail.