Showing
38 changed files
with
0 additions
and
32 deletions
1 | -var inherits = require('util').inherits; | ||
2 | -var EventEmitter = require('events').EventEmitter; | ||
3 | - | ||
4 | - | ||
5 | -var Producer = function () { | ||
6 | - if (! (this instanceof Producer)) return new Producer(); | ||
7 | - | ||
8 | - EventEmitter.call(this); | ||
9 | -} | ||
10 | - | ||
11 | -// inherits를 활용, Producer construct가 EventEmitter Construct를 상속받음 | ||
12 | -inherits(Producer, EventEmitter); | ||
13 | - | ||
14 | -// producer의 start 함수를 재정의 | ||
15 | -Producer.prototype.start = function () { | ||
16 | - | ||
17 | - // Random 스트링을 생성하여 이것을 Event에 실어서 보내야 하는 코드 작성 | ||
18 | - | ||
19 | - | ||
20 | -} | ||
21 | - | ||
22 | - | ||
23 | -module.exports = Producer; |
File moved
File moved
File moved
File moved
File moved
File moved
File moved
-
Please register or login to post a comment