Answers for "what is on and once in node"

0

what is on and once in node

on() ,
  you attach a full listener, versus when you use EventEmitter. once() , 
    it is a one time listener that will detach after firing once.
Listeners that only fire once don't count towards the max listener count
Posted by: Guest on March-01-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language