Skip to content

Commit

Permalink
publish channel name
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Neme <lacrymology@gmail.com>
  • Loading branch information
Lacrymology committed Mar 28, 2013
1 parent cfcc98a commit 6fac9e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ listbackend.use(backboneio.middleware.mongoStore (db, 'lists'));

var schedbackend = backboneio.createBackend();
schedbackend.use(function (req, res, next) {
console.log ("schedbackend handler", req);
channel.publish ({method: req.method, backend: req.backend, model: req.model});
next();
console.log ("schedbackend handler", req);
channel.publish ({channel: "schedbackend", method: req.method, backend: req.backend, model: req.model});
next();
});
schedbackend.use(backboneio.middleware.mongoStore(db, 'scheds'));
channel.subscribe ({channel: 'schedbackend'}, function (sched) {
Expand Down

0 comments on commit 6fac9e4

Please sign in to comment.