From 24c1b5cfdf2f7ce51c86dcfaedf91bd54d98ff75 Mon Sep 17 00:00:00 2001 From: Andre Fonseca Date: Thu, 15 Nov 2012 22:46:07 -0200 Subject: [PATCH] some stuffs --- .travis.yml | 2 +- app.coffee | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8111245..895dbd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ language: node_js node_js: - 0.6 - - 0.8 \ No newline at end of file + - 0.8 diff --git a/app.coffee b/app.coffee index 31ce3cf..46010fd 100644 --- a/app.coffee +++ b/app.coffee @@ -28,10 +28,6 @@ app.configure 'prod', -> #middleware for auth has_permission = (req,res, next) -> next() -# if res.session.user? and res.session.user=='chefe' -# next() -# else -# res.redirect('/error_invalid.html') ##Routes app.get "/speaker", has_permission, (req, res) -> @@ -39,8 +35,8 @@ app.get "/speaker", has_permission, (req, res) -> ##Websockets parts sockets.on 'connection', (client) -> - client.on 'paginate', (pag) -> - sockets.broadcast.emit('changePage', pag) + client.on 'next', (pag) -> + sockets.broadcast.emit('next', pag) ## start server to listening */