title: Observe file changes with node.js
body: <p>I have the following UseCase: </p>
  
  <blockquote>
    <p>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, B and C read this
    file.</p>
  </blockquote>
  
  <p>I want a to create a file on server and observe this file if anybody else writes something into this file send the new content back with websockets.</p>
  
  <p>So, any change of this file should be observed by my node.js application.</p>
  
  <p><strong>How can I observe files-changes? Is this possible with node js without locking the files?</strong></p>
  
  <p>If not possible with files, would it be possible with database object (NoSQL)</p>