Answer the question
In order to leave comments, you need to log in
How to write an event-causing module with the ability to hang handlers on nodejs?
Throw a link with a tutorial, which describes the creation of a module with a class
when the module is called, a new object is created on the events of which you can hang handlers
as much as I google, but so far I stumble upon only the most primitive articles, and I can’t find a simple module with the necessary functionality to peep the code.
Answer the question
In order to leave comments, you need to log in
Here is a similar example: nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question