title: Node.js sending audio file and allowing user to seek
body: <p>I am trying to create an app that allows the users to dynamically change the track they are listening to. I am using sails.js on top of node. The issue that I am having is that when the user try to seek to a time in the song before or after the current time the song will start over.</p>
  
  <p>this is the latest code that i have tried to implement on the server.</p>
  
  <pre><code>'index': function (request, response) {
          var path = require('path');
          var fs = require('fs');
          var filePath = path.join('path\to\folder','music.mp3')
          var stat = fs.statSync(filePath);
  
          response.writeHead(200, {
          'Content-Type': 'audio/mpeg',
          'Content-Length': stat.size
          });
  
          fs.readFile(filePath,function (err,data) {
              response.send(data);
          });
  
      }
  </code></pre>