+ io; other changes;

This commit is contained in:
tmshv committed 2015-03-16 17:21:01 +03:00
1 parent 754c8bf9a4
commit dc130ad394
13 files changed
+145 -63

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/**
* Created by tmshv on 14/03/15.
*/
var publisher = require("./publish");
module.exports = function (app) {
app.io.use(function *(next) {
publisher.on("post", function (post) {
console.log("IO POST", post);
app.io.emit("post", post);
});
yield* next;
});
};