{"author_name":"hecomi","title":" Node.js \u3067 C++ \u30a2\u30c9\u30aa\u30f3\u304b\u3089 EventEmitter \u306e\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u3092\u547c\u3076","width":"100%","categories":["C++","node.js","JavaScript"],"published":"2012-10-20 05:17:24","description":"\u306f\u3058\u3081\u306b EventEmitter \u306f Socket.IO \u306a\u3069\u3067\u3082\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u306e\u767b\u9332/\u51e6\u7406\u304c\u3067\u304d\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002 var EventEmitter = require('events').EventEmitter; var ev = new EventEmitter(); ev.on('hoge', function(data) { console.log(data); }); setTimeout(function() { ev.emit('hoge', 'piyopiyo'); }, 1000); \u53c2\u8003: Events Node.js v0.1\u2026","url":"https://tips.hecomi.com/entry/20121020/1350764244","blog_url":"https://tips.hecomi.com/","type":"rich","image_url":null,"author_url":"https://blog.hatena.ne.jp/hecomi/","provider_url":"https://hatena.blog","blog_title":"\u51f9\u307fTips","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftips.hecomi.com%2Fentry%2F20121020%2F1350764244\" title=\" Node.js \u3067 C++ \u30a2\u30c9\u30aa\u30f3\u304b\u3089 EventEmitter \u306e\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u3092\u547c\u3076 - \u51f9\u307fTips\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","height":"190","provider_name":"Hatena Blog"}