mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(console) io -> lListen
This commit is contained in:
parent
544fa07340
commit
932ce69fab
1 changed files with 1 additions and 1 deletions
|
|
@ -23,11 +23,11 @@
|
|||
exports.listen = function(pServer){
|
||||
var lRet;
|
||||
if(io){
|
||||
io.set('log level', INFO_LOG_LEVEL);
|
||||
var lListen = io.listen(pServer),
|
||||
/* number of connections */
|
||||
lConnNum = 0;
|
||||
|
||||
lListen.set('log level', INFO_LOG_LEVEL);
|
||||
lRet = lListen.sockets.on('connection', function (socket){
|
||||
++lConnNum;
|
||||
socket.send('{"stdout":"client connected"}');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue