1.0.5 • Published 10 years ago

remote-tile v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
10 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

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago