All Projects β†’ capaj β†’ chokidar-socket-emitter

capaj / chokidar-socket-emitter

Licence: MIT license
a simple chokidar watcher which emits events to all connected socket.io clients

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to chokidar-socket-emitter

SwiftFSWatcher
A simple easy to use / extend File System watcher using Swift
Stars: ✭ 35 (+25%)
Mutual labels:  filesystem, watcher
Notify
πŸ”­ Cross-platform filesystem notification library for Rust.
Stars: ✭ 1,123 (+3910.71%)
Mutual labels:  filesystem, watcher
watcher
The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.
Stars: ✭ 37 (+32.14%)
Mutual labels:  filesystem, watcher
rorshach
A watchman for your directories. Rorshach allows you to listen to file system changes and run commands when these events occur.
Stars: ✭ 26 (-7.14%)
Mutual labels:  filesystem, watcher
Chokidar
Minimal and efficient cross-platform file watching library
Stars: ✭ 8,538 (+30392.86%)
Mutual labels:  filesystem, watcher
fswatch
File/Directory Watcher for Modern C++
Stars: ✭ 56 (+100%)
Mutual labels:  filesystem, watcher
socketio-with-express
Sample script demonstrating how to run Express with socket.io.
Stars: ✭ 29 (+3.57%)
Mutual labels:  socket-io
spiced-final-project
Career explorer platform developed in React.js in 6 days.
Stars: ✭ 14 (-50%)
Mutual labels:  socket-io
vue-feathers-chat
A sample realtime chat made with Vue and Feathers.
Stars: ✭ 50 (+78.57%)
Mutual labels:  socket-io
EduSmart
It utilizes 3D, Augmented reality to give real-life simulations or feels of various models and make the learning process more impactful and fascinating. With an interactive live feature, students can ask the teacher their doubts instantly and also discuss.
Stars: ✭ 23 (-17.86%)
Mutual labels:  socket-io
xbox-winfsp
Brings native support for Xbox filesystems (FATX, STFS & GDFX/XGD/XDVDFS) to Windows.
Stars: ✭ 37 (+32.14%)
Mutual labels:  filesystem
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (-21.43%)
Mutual labels:  socket-io
Lexical.FileSystem
Virtual IFileSystem interfaces, and implementations.
Stars: ✭ 24 (-14.29%)
Mutual labels:  filesystem
socket.io-clusterhub
socket.io storage powered by clusterhub for multi process applications.
Stars: ✭ 70 (+150%)
Mutual labels:  socket-io
encryptFS
A simple file system that encrypts files individually.
Stars: ✭ 15 (-46.43%)
Mutual labels:  filesystem
CleanArchitecture-SocketIO
CleanArchitecture with SocketIo πŸ“‘
Stars: ✭ 32 (+14.29%)
Mutual labels:  socket-io
Vudit
A file viewer for Android
Stars: ✭ 40 (+42.86%)
Mutual labels:  filesystem
Save-System-for-Unity
Save System for Unity with AOT (IL2CPP) and assets references support.
Stars: ✭ 116 (+314.29%)
Mutual labels:  filesystem
event
πŸ“† Strictly typed event emitter with asynciterator support
Stars: ✭ 30 (+7.14%)
Mutual labels:  event-emitter
2019-01
πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’»Boolean Avengers : 개발 상식을 점검할 수 μžˆλŠ” μ›Ή μ‹œλ¦¬μ–΄μŠ€ κ²Œμž„ μ„œλΉ„μŠ€
Stars: ✭ 38 (+35.71%)
Mutual labels:  socket-io

chokidar-socket-emitter

a simple chokidar watcher and socket.io server which emits file system events to all connected socket.io clients. Primarily it should serve as an event source for systemjs-hot-reloader but you can use it any other way.

Install

npm i -D chokidar-socket-emitter

CLI usage

npm i -g chokidar-socket-emitter
chokidar-socket-emitter -l 1234

available CLI options:

-l, --port <n>
-p, --path <path>
-d, --dir <n>
-P, --poll  # use when you have a disk mounted over network for example
-q, --quiet # don't print out any logs

By default listens on port 5776.

NPM script usage

Combined with browser-sync:

"scripts": {
  "start": "npm run serve & npm run watch",
  "serve": "browser-sync start --server",
  "watch": "chokidar-socket-emitter"
},

Start by running:

npm start

Programatic usage

var chokidarEvEmitter = require('chokidar-socket-emitter')
chokidarEvEmitter({port: 8090}) //path is taken from jspm/directories/baseURL or if that is not set up, '.' is used
//or specify the path
chokidarEvEmitter({port: 8090, path: '.'})

//you can also supply an http server instance, that way it will run within your server, no need for extra port
require('chokidar-socket-emitter')({app: server})

FAQ

Does chokidar have problems with watching drives mounted from VMs hosts/network?

Yes and if you want it to work, use additional opts property to switch to polling mode

chokidarEvEmitter({port: 8090, path: '.', chokidar: {usePolling: true}})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].