mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 20:53:02 +00:00
feature(terminal) add
This commit is contained in:
parent
8a0d695d0a
commit
a1159774a9
9 changed files with 6137 additions and 2 deletions
|
|
@ -13,6 +13,7 @@
|
|||
exports.addListener = addListener;
|
||||
exports.removeListener = removeListener;
|
||||
exports.send = send;
|
||||
exports.emit = emit;
|
||||
exports.listen = listen;
|
||||
|
||||
function addListener(name, func, socket) {
|
||||
|
|
@ -33,6 +34,11 @@
|
|||
clientSocket.send(msg);
|
||||
}
|
||||
|
||||
function emit(channel, message, clientSocket) {
|
||||
if (clientSocket)
|
||||
clientSocket.emit(channel, message);
|
||||
}
|
||||
|
||||
/**
|
||||
* function listen on servers port
|
||||
* @pServer {Object} started server object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue