diff --git a/README.md b/README.md index ad83cde..68bb4a8 100644 --- a/README.md +++ b/README.md @@ -100,16 +100,22 @@ To the enabled site inside the "server" section: If you would like get informations about the hasses internal state, get statistics or client information you can send commands to the hasses communication channel to modify the internal state, or get information to the log output. +It also possible the receive information on communication channels. (with "tcp" prefixed commands, these command are replied in json format) These commands are: "status" - Print status/statistics to the log + "tcpstatus" - Send status/statistics back to the sender on communication channel "clientlist" - List clients to the log "loglevel_quiet" - Set loglevel to minimal "loglevel_normal" - Set loglevel to normal "loglevel_debug" - Set loglevel to maximum + "numberofclients" - Print number of clients to the log + "tcpnumberofclients" - Send number of clients back to the sender on communication channel "reinit_enable" - Enable re-initialize opened connections "reinit_disable" - Enable re-initialize opened connections + "subscribedclients:" - Print number of the subscribed clients to the log + "tcpsubscribedclients:" - Send number of the subscribed clients back to the sender "=" - Send message to the subscribers of "=;=" - Send more messages "-=" - Send message to the subscribers of except diff --git a/hasses.c b/hasses.c index 7bc6934..08657b2 100644 --- a/hasses.c +++ b/hasses.c @@ -225,7 +225,7 @@ int printhelp(void) " \"reinit_enable\" - Enable re-initialize opened connections\n" " \"reinit_disable\" - Enable re-initialize opened connections\n" " \"subscribedclients:\" - Print number of the subscribed clients to the log\n" - " \"tcpsubscribedclients:\" - Send number of the subscribed clients to back\n" + " \"tcpsubscribedclients:\" - Send number of the subscribed clients back to the sender\n" " \"=\" - Send message to the subscribers of \n" " \"=;=\" - Send more messages\n" " \"-=\" - Send message to the subscribers of except \n"