F
F
farafontov2013-02-07 19:54:46
JavaScript
farafontov, 2013-02-07 19:54:46

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

1 answer(s)
V
Vyacheslav Slinko, 2013-02-07
@farafontov

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 question

Ask a Question

731 491 924 answers to any question