Skip to content

Commit

Permalink
Commit rauchg#11: Removing unwanted comments and index.html and trans…
Browse files Browse the repository at this point in the history
…mitter.html
  • Loading branch information
TheSachinSBhat committed Feb 9, 2017
1 parent d1de18f commit a74db18
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 408 deletions.
231 changes: 0 additions & 231 deletions index.html

This file was deleted.

19 changes: 0 additions & 19 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ listener.sockets.on('connection', function (socket) {
allClients.push(socket);
var deviceSessionId = allClients.indexOf(socket);

//global.testContext = global.testContext + 1;

//socket.emit('message', { 'message': 'hello world'});

socket.emit('deviceSessionData', { 'deviceSessionId': deviceSessionId });

socket.on('disconnect', function () {
Expand All @@ -68,23 +64,8 @@ listener.sockets.on('connection', function (socket) {
/* Remove the location data from the deviceLocationData array */
deviceLocationData.splice(deviceSessionId, 1);

//// TODO: Convert this into a method - broadcastBusLocationData(socket)
//socket.broadcast.emit('buslocationData', {
// 'deviceLocationData': global.deviceLocationData
//});
});

//socket.on('buslocation', function (busLocation) {

// global.deviceLocationData[busLocation.deviceSessionId] = { 'deviceSessionId': busLocation.deviceSessionId, 'lat': busLocation.lat, 'lng': busLocation.lng };

// // TODO: Convert this into a method - broadcastBusLocationData(socket)
// socket.broadcast.emit('buslocationData', {
// //'deviceSessionId': busLocation.deviceSessionId, 'lat': busLocation.lat, 'lng': busLocation.lng,
// 'deviceLocationData': global.deviceLocationData
// });
//});

socket.on('chat message', function(msg){
socket.emit('chat message', msg);
});
Expand Down
Loading

0 comments on commit a74db18

Please sign in to comment.