spotify-port-scanner-node
This node module will connect to Spotify desktop application using the spotilocal
protocol with automatic port detection of the host. This module uses the node module node-spotify-webhelper to communicate to the host application.
How to install
To install this module via npm
type
npm install -s spotify-port-scanner
To install from sources
git clone https://github.com/loretoparisi/spotify-port-scanner-node.git
cd spotify-port scanner/
npm install
Usage
See examples in examples/
folder for more examples.
Connect the client to the host Spotify application while debugging.
var SpotifySDK = ;var client = debug : true ;client ;
As soon as the client is connected, to get the host application instance and query for the status:
// get host status // get spotify application host var host=client; host;
The host protocol
This is an example of host application protocol.
The response status contains the following fields