source files -> src/ folder
This commit is contained in:
1 parent
f006207112
commit
d25f4439fa
144 files changed
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