{"author_name":"Jxck","published":"2011-06-21 09:42:29","type":"rich","author_url":"https://blog.hatena.ne.jp/Jxck/","categories":["node.js","EventEmitter"],"provider_name":"Hatena Blog","blog_title":"Block Rockin\u2019 Codes","height":"190","version":"1.0","blog_url":"https://jxck.hatenablog.com/","title":" require('events').EventEmitter.call(this) \u306e\u610f\u5473","description":"[\u4fee\u6b63] \u30b3\u30e1\u30f3\u30c8\u3067\u6307\u6458\u3055\u308c\u305f\u3088\u3046\u306b\u3001\u56de\u7b544\u306e\u8a33\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u3067\u8a02\u6b63\u3057\u307e\u3057\u305f\u3002 Node \u306e ML \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8cea\u554f\u304c\u6295\u7a3f\u3055\u308c\u307e\u3057\u305f\u3002What is the meaning of require('events').EventEmitter.call(this)\u5185\u5bb9\u3068\u3057\u3066\u306f\u3002 \u300c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u3053\u308c\u3063\u3066\u3069\u3046\u3044\u3046\u610f\u5473\uff1f\u300d var util = require(\"util\"); var events = require(\"events\"); function MyStream() { // \u3053\u3053\u306e\u610f\u5473\u304c\u3088\u304f\u308f\u304b\u3089\u3093\u3001\u3053\u308c\u306f `new MyStream` \u3068\u540c\u3058\u306b\u898b\u3048\u308b\u3093\u3060\u3051\u2026","image_url":null,"width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjxck.hatenablog.com%2Fentry%2F20110621%2F1308616949\" title=\" require(&#39;events&#39;).EventEmitter.call(this) \u306e\u610f\u5473 - Block Rockin\u2019 Codes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://jxck.hatenablog.com/entry/20110621/1308616949"}