first test with cli client

This commit is contained in:
Marc Wäckerlin
2017-05-10 14:55:24 +00:00
parent 34a9bf3eb3
commit c13f5c9840
19 changed files with 764 additions and 406 deletions

View File

@@ -21,6 +21,13 @@ module.exports = function(sql) {
socket.broadcast.emit(signal, data);
}
socket
.on('login', function() {})
.on('', function() {})
.on('', function() {})
.on('', function() {})
.on('', function() {})
/*
socket.on("message", function(msg) {
console.log("-> signal: message");
if (!msg || !msg.user || !msg.content) return emit("fail", "wrong message format");
@@ -111,7 +118,7 @@ module.exports = function(sql) {
if (!err && res && res.length) emit('users', res);
});
});
*/
};
return module;