6
emit関数を実行するサーバーを作成できない理由がわかりません。これはnode.jsでemit関数を使用する
this.on('start',function(){
console.log("wtf");
});
すべてのコンソールタイプ:
here
here-2
任意のアイデアなぜそれ文句を言わない'wtf'
を印刷
myServer.prototype = new events.EventEmitter;
function myServer(map, port, server) {
...
this.start = function() {
console.log("here");
this.server.listen(port, function() {
console.log(counterLock);
console.log("here-2");
this.emit('start');
this.isStarted = true;
});
}
listener HERE...
}
リスナーがある:
は、ここに私のコードですか?
どうもありがとうございました!!! – Itzik984