mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 08:29:53 +00:00
feature(server) change socket msg
This commit is contained in:
parent
9fc5e88186
commit
117ad39043
1 changed files with 8 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
|||
Querystring = main.querystring,
|
||||
|
||||
Minify = main.minify,
|
||||
CloudFunc = main.cloudfunc,
|
||||
AppCache = main.appcache,
|
||||
Socket = main.socket,
|
||||
|
||||
|
|
@ -80,11 +81,15 @@
|
|||
lHTTPS = 'https://',
|
||||
|
||||
lSockets = function(pServer) {
|
||||
var lListen;
|
||||
if(lConfig.socket && Socket)
|
||||
var lListen, msg, status;
|
||||
|
||||
if (lConfig.socket && Socket)
|
||||
lListen = Socket.listen(pServer);
|
||||
|
||||
Util.log('* Sockets ' + (lListen ? 'running' : 'disabled'));
|
||||
status = lListen ? 'on' : 'off';
|
||||
msg = CloudFunc.formatMsg('sockets', '', status);
|
||||
|
||||
Util.log(msg);
|
||||
},
|
||||
|
||||
lHTTPServer = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue