From 6fac9e4bf1559cbe62267603b11562bf1d96eebd Mon Sep 17 00:00:00 2001 From: Tomas Neme Date: Thu, 28 Mar 2013 18:51:39 -0300 Subject: [PATCH] publish channel name Signed-off-by: Tomas Neme --- server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index e85cd84..0293f62 100644 --- a/server.js +++ b/server.js @@ -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) {