@@ -101,11 +101,11 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
101101 // / @rpc_notification jamulusclient/serverListReceived
102102 // / @brief Emitted when the server list is received.
103103 // / @param {array} params.servers - The server list.
104- // / @param {string} params.servers[*].address - Socket address (ip_address:port)
105- // / @param {string} params.servers[*].name - Server name
104+ // / @param {string} params.servers[*].address - Socket address (ip_address:port).
105+ // / @param {string} params.servers[*].name - Server name.
106106 // / @param {number} params.servers[*].countryId - Server country ID (see QLocale::Country).
107- // / @param {string} params.servers[*].country - Server country
108- // / @param {string} params.servers[*].city - Server city
107+ // / @param {string} params.servers[*].country - Server country.
108+ // / @param {string} params.servers[*].city - Server city.
109109 connect ( pClient->getConnLessProtocol (),
110110 &CProtocol::CLServerListReceived,
111111 [=] ( CHostAddress /* unused */ , CVector<CServerInfo> vecServerInfo ) {
@@ -130,9 +130,9 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
130130
131131 // / @rpc_notification jamulusclient/serverInfoReceived
132132 // / @brief Emitted when a server info is received.
133- // / @param {string} params.address - The server socket address
134- // / @param {number} params.pingtime - The round-trip ping time in ms
135- // / @param {number} params.numClients - The quantity of clients connected to the server
133+ // / @param {string} params.address - The server socket address.
134+ // / @param {number} params.pingtime - The round-trip ping time, in milliseconds.
135+ // / @param {number} params.numClients - The number of clients connected to the server.
136136 connect ( pClient, &CClient::CLPingTimeWithNumClientsReceived, [=] ( CHostAddress InetAddr, int iPingTime, int iNumClients ) {
137137 pRpcServer->BroadcastNotification (
138138 " jamulusclient/serverInfoReceived" ,
@@ -145,15 +145,15 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
145145 connect ( pClient, &CClient::Disconnected, [=]() { pRpcServer->BroadcastNotification ( " jamulusclient/disconnected" , QJsonObject{} ); } );
146146
147147 // / @rpc_notification jamulusclient/recorderState
148- // / @brief Emitted when the client is connected to a server who's recorder state changes.
149- // / @param {number} params.state - The recorder state
148+ // / @brief Emitted when the client is connected to a server whose recorder state changes.
149+ // / @param {number} params.state - The recorder state.
150150 connect ( pClient, &CClient::RecorderStateReceived, [=] ( const ERecorderState newRecorderState ) {
151151 pRpcServer->BroadcastNotification ( " jamulusclient/recorderState" , QJsonObject{ { " state" , newRecorderState } } );
152152 } );
153153
154154 // / @rpc_method jamulus/pollServerList
155- // / @brief Request list of servers in a directory
156- // / @param {string} params.directory - socket address of directory to query, e.g. anygenre1.jamulus.io:22124.
155+ // / @brief Request list of servers in a directory.
156+ // / @param {string} params.directory - Socket address of directory to query. Example: anygenre1.jamulus.io:22124.
157157 // / @result {string} result - "ok" or "error" if bad arguments.
158158 pRpcServer->HandleMethod ( " jamulusclient/pollServerList" , [=] ( const QJsonObject& params, QJsonObject& response ) {
159159 auto jsonDirectoryIp = params[" directory" ];
0 commit comments