add  how to set max listeners to pub-sub.js