spencerlambert / mysql-events

A node meteor package that watches a MySQL database and runs callbacks on matched events.
Other
87 stars 74 forks source link

uncomment the line in index.js #37

Open electroBakuza opened 6 years ago

electroBakuza commented 6 years ago

in index.js line below


this.zongji.on('error', function(err) { //console.log("ZongJi error event", err); });


the commented line should be uncommented. 1.With out it it does not capture the 'error' event. 2.Cause of 'No event notifications' #23 is also due to this because 'Error: Received packet in the wrong sequence' is not caught by this line causing further issues.

  1. Because the 'error' event is bypassed without notification and actually is not made, so the
    'var watcher = mysqlEventWatcher.add(arg,handler)' is not listening also that's why causing 'no event notification' bug.