Updated to the latest iteration of the sales tracking app; Added some temporary photos for UBS.
This commit is contained in:
27
brainstorm.js
Normal file
27
brainstorm.js
Normal file
@@ -0,0 +1,27 @@
|
||||
//Server side brainstorm.
|
||||
|
||||
module.exports = function(app, sequelize) {
|
||||
var io = require('socket.io')(app);
|
||||
|
||||
io.on('connection', function(socket) {
|
||||
//TODO: Handle new connections.
|
||||
|
||||
//socket.emit("name", {param: 'value'});
|
||||
|
||||
//socket.on("name", function(data) {});
|
||||
socket.on("query", function(params) {
|
||||
var model = sequelize.models[params.class];
|
||||
|
||||
if(model) {
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('disconnect', function() {
|
||||
//TODO: ?
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user