Skip to content

Commit

Permalink
Pass in tutorial id to lobby through controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
glutSolidSphere committed Apr 7, 2017
1 parent 3446bf1 commit d7903db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/javascripts/Lobby/lobby-angular-socket-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ angular.module('lobbyApp').controller ('socketCtrl', function ($scope, $window,
var userRole = $window.userRole;
var moduleId = $window.moduleId;
var tutorialId = $window.tutorialId;

var tutorialUuid = $window.tutorialUuid;

var data = {
'userId' : userId,
'username' : username,
'userRole' : userRole,
'moduleId' : moduleId,
'tutorialId' : tutorialId
'tutorialId' : tutorialId,
'tutorialUuid' : tutorialUuid
};

socket.emit ('new connection', data);
Expand Down

0 comments on commit d7903db

Please sign in to comment.