Skip to content

Commit 07ca37c

Browse files
committed
Updated README.md
1 parent 0f16c21 commit 07ca37c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,22 @@ To the enabled site inside the "server" section:
100100

101101
If you would like get informations about the hasses internal state, get statistics or client information you can send commands
102102
to the hasses communication channel to modify the internal state, or get information to the log output.
103+
It also possible the receive information on communication channels. (with "tcp" prefixed commands, these command are replied in json format)
103104

104105
These commands are:
105106

106107
"status" - Print status/statistics to the log
108+
"tcpstatus" - Send status/statistics back to the sender on communication channel
107109
"clientlist" - List clients to the log
108110
"loglevel_quiet" - Set loglevel to minimal
109111
"loglevel_normal" - Set loglevel to normal
110112
"loglevel_debug" - Set loglevel to maximum
113+
"numberofclients" - Print number of clients to the log
114+
"tcpnumberofclients" - Send number of clients back to the sender on communication channel
111115
"reinit_enable" - Enable re-initialize opened connections
112116
"reinit_disable" - Enable re-initialize opened connections
117+
"subscribedclients:<sub>" - Print number of the subscribed clients to the log
118+
"tcpsubscribedclients:<sub>" - Send number of the subscribed clients back to the sender
113119
"<token>=<message>" - Send message to the subscribers of <token>
114120
"<token>=<message>;<token2>=<message2>" - Send more messages
115121
"<token>-<rId>=<message>" - Send message to the subscribers of <token> except <rId>

hasses.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ int printhelp(void)
225225
" \"reinit_enable\" - Enable re-initialize opened connections\n"
226226
" \"reinit_disable\" - Enable re-initialize opened connections\n"
227227
" \"subscribedclients:<sub>\" - Print number of the subscribed clients to the log\n"
228-
" \"tcpsubscribedclients:<sub>\" - Send number of the subscribed clients to back\n"
228+
" \"tcpsubscribedclients:<sub>\" - Send number of the subscribed clients back to the sender\n"
229229
" \"<token>=<message>\" - Send message to the subscribers of <token>\n"
230230
" \"<token>=<message>;<token2>=<message2>\" - Send more messages\n"
231231
" \"<token>-<rId>=<message>\" - Send message to the subscribers of <token> except <rId>\n"

0 commit comments

Comments
 (0)