Skip to content

Commit

Permalink
Rest of X-Sandstorm-Username support (apparently)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdtrekkie committed May 29, 2015
1 parent 3016457 commit 6987b9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ var io = require('socket.io')(server);

app.get('/', function(req, res) {

var connected = io.sockets.connected;
clientsCount = Object.keys(connected).length;
sandstormUsername = req.header('x-sandstorm-username');

res.cookie('scrumscrum-username', sandstormUsername);

res.render('index.jade', {
locals: {pageTitle: ('scrumblr - ' + req.params.id) }
locals: { pageTitle: ('scrumblr - ' + req.params.id) }
});
});

Expand Down Expand Up @@ -108,7 +109,6 @@ io.sockets.on('connection', function (client) {
case 'joinRoom':

joinRoom(client, message.data, function(clients) {

client.json.send( { action: 'roomAccept', data: '' } );

});
Expand Down

0 comments on commit 6987b9b

Please sign in to comment.