Toggle navigation
Toggle navigation
This project
Loading...
Sign in
진성욱
/
OSS
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
swjin
2019-11-01 10:24:20 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
792014eae46c6210ac16f812b66bb83ab8623d7b
792014ea
2 parents
7283f9fa
0cabfac3
Merge branch 'master' of
ssh://khuhub.khu.ac.kr:12959/Prof.JinSeongwook/OSS
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
Experiments/experiments08/Assignments/02/producer.js
Experiments/experiments08/Assignments/02/producer.js
View file @
792014e
var
inherits
=
require
(
'util'
).
inherits
;
// inherits를 활용하여 Producer construct가 EventEmitter Construct를 상속받도록 해야 함
var
EventEmitter
=
require
(
'events'
).
EventEmitter
;
...
...
@@ -9,7 +8,16 @@ var Producer = function () {
EventEmitter
.
call
(
this
);
}
// inherits를 활용하여 Producer construct가 EventEmitter Construct를 상속받도록 해야 함
inherits
(
Producer
,
EventEmitter
);
// producer의 start 함수를 재정의 해야 함
Producer
.
prototype
.
start
=
function
()
{
// Random 스트링을 생성하여 이것을 Event에 실어서 보내야 하는 코드 작성
}
module
.
exports
=
Producer
;
...
...
Please
register
or
login
to post a comment