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
Dexter Jin
2019-10-31 22:46:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0cabfac32b3349a912c0996b0f829e9afe43dba2
0cabfac3
1 parent
d77f7f68
Experiment08 Updated
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 @
0cabfac
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