title: Mysql changes listener for node.js
body: <p>Is there a way that mysql server in node.js listens for changes in the database and get a callback for that changes like Database Changes Notification in Oracle DB?</p>
  
  <p>I'm thinking to implement it somewhat like this way</p>
  
  <pre><code>var mongo = require("mysql"); 
  var client = require('socket.io').listen(port).sockets;
  var db = mysql.createConnection({host: host, user: user, database: db});
  
  db.listen.on('changes',function(){
     client.emit("hasChanges");
  });
  </code></pre>