1.0.5 • Published 8 years ago

remote-tile v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

Remote-Tile

Cyanogenmod Custom Tile (NodeJS Server)

nodep

  • install npm install remote-tile
  • create your custom events
  • run yout node script

Usage

var remoteTile = requre("remote-tile");

remoteTile
	.add("event", fucntion(args){
		console.log(args);
	})
	.start();

Methods

port(Number port)

setup the listening port for the socket

logs(Boolean enabled)

enable/disable verbose logs like

$ 09:50:22 [event=test] [data=hello]
$ 09:50:29 [event=vlc] [data=play/pause]
add(String event , Function fn)

Pass a function to run when receive an "event"

throws Error if fn is not a function

throws Error if event is already defined

start()

start the socket

throws Error if port is already used

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago