mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
fixed client removal, joining, etc.
This commit is contained in:
parent
2183e70bd8
commit
69fd43a900
6 changed files with 69 additions and 50 deletions
|
|
@ -17,7 +17,12 @@ function (Parser) {
|
|||
}
|
||||
|
||||
Helper.runCommands = function (message, callback) {
|
||||
var commands = Parser.decode(message);
|
||||
var commands;
|
||||
if (typeof message == "string") {
|
||||
commands = Parser.decode(message);
|
||||
} else {
|
||||
commands = message;
|
||||
}
|
||||
|
||||
for(var command in commands) {
|
||||
callback(command, commands[command]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue