Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.
/ dir2httpwatch Public archive

Push changes of a directory to webclients (For learning Node.js)

Notifications You must be signed in to change notification settings

plundra/dir2httpwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About
-----
Synchronizes content of a directory with webclients using socket.io.

How it works
------------
1) Clients connects to server, which sends current filelist.
2) Server watches a directory for changes.
3) On changes (file is added or removed), send notification to clients.

Flaws/Todo
----------
Initial plan was to use inotify for watching directory, but turned out
to be a hassle to learn; so did a polling fs.readdir(). This should be
switched back to the inital plan.

About

Push changes of a directory to webclients (For learning Node.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published