0.0.0 • Published 13 years ago
doodle-boots v0.0.0
Doodle-boots, a reloader based on Websocket and Rain-boots
For Rain-boots please read: https://github.com/jiyinyiyong/rain-boots
Usage
The events you may emit:
server: create the servers for http and websocketOptions:
http:Number 7777, to specify the port fordoodle.jsfilews:Number 7776, to specify the port of websocketinterval:Number 600, the minimal interval of reload eventsrevive:Number 4000, time it revives if broken
watch: watch a path for sendingreloadsignalOption:
String: a string for the filename or dirname[String]: array of strings to watch
The event you may listen:
started: servers started. Will be emitted only oncewatched: you may got the path you watched...
What to do on browser side:
Add
http://localhost:7777/doodle.jsto you scripts
Actually http server givesdoodle.jsevery time, no need specify
Your address may be different from mime intest/This is currently not a stable project, fix it if it's broken
0.0.0
13 years ago