+ io; other changes;
This commit is contained in:
1 parent
754c8bf9a4
commit
dc130ad394
13 files changed
+145
-63
No files matched your search
@@ -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;
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user