I have the following UseCase:
A creates a Chat and invites B and C - On the Server A creates a File. A, B and C writes messages into this file. A,
Also you could use node-watch. Here's an easy example:
const watch = require('node-watch') watch('README.md', function(event, filename) { console.log(filename, ' changed.') })