first test with cli client
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user