mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(console) module.exports: rm ret
This commit is contained in:
parent
2f2ff1ed35
commit
5d2e7f394e
1 changed files with 1 additions and 5 deletions
|
|
@ -20,15 +20,11 @@
|
|||
CHANNEL = CloudFunc.CHANNEL_CONSOLE;
|
||||
|
||||
module.exports = function() {
|
||||
var ret;
|
||||
|
||||
ret = socket.on('connection', function(clientSocket) {
|
||||
socket.on('connection', function(clientSocket) {
|
||||
onConnection(clientSocket, function(json) {
|
||||
socket.emit(CHANNEL, json, clientSocket);
|
||||
});
|
||||
});
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
function onConnection(clientSocket, callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue