Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #node
ADD COMMENT
Topic
Name
8+8 =