Add new RPC methods and notifications (mostly for scripting interaction) to server and client#3730
Add new RPC methods and notifications (mostly for scripting interaction) to server and client#3730dingodoppelt wants to merge 3 commits into
Conversation
cdf20bb to
663a557
Compare
|
@mcfnord you might be interested in this. |
8b270d7 to
6111ecb
Compare
f301d4e to
9fffbad
Compare
|
|
||
| ### jamulusserver/broadcastChatMessage | ||
|
|
||
| Sends a chat message to all connected clients. |
There was a problem hiding this comment.
| Sends a chat message to all connected clients. | |
| Sends a chat message from this client to the server. The server will send this to all connected clients. |
There was a problem hiding this comment.
What exactly is "this client" in this case? Should'nt it rather be "this RPC client" (like nc, curl or some script)? Since this is a server method I think my explanation is sufficient in making clear what this method does.
There was a problem hiding this comment.
The Client in Jamulus terms is the Client exchanging UDP messages with the Server. (I should have capitalised both for compliance with the style guide, my bad.)
Maybe
| Sends a chat message to all connected clients. | |
| Sends the chat message in the request from the Client to the Server. The Service will send the message to all connected Clients. |
There was a problem hiding this comment.
The Client in Jamulus terms is the Client exchanging UDP messages with the Server.
But we are not a client in this case, we are the RPC server and we are processing a request from a client like curl or nc. I'm confused
Edit: To clarify: this is a server method, not client. This is not the client sending a normal chat message just triggered via RPC, it is actually the server itself broadcasting a message to all connected clients.
There was a problem hiding this comment.
Ah right. I missed that, sorry. Still, make the doc clearer 😄 .
pljones
left a comment
There was a problem hiding this comment.
Needs splitting. The private message feature should be separate.
In addition to
but I don't see why only the private chat message should be handled independently. |
Because the feature is entirely new. |
9fffbad to
48202f5
Compare
- jamulus/getAvailableMethods - jamulusclient/setMuted - jamulusserver/broadcastChatMessage - jamulusserver/chatMessageReceived - jamulusserver/clientConnected - jamulusserver/clientDisconnected
48202f5 to
130584b
Compare
Short description of changes
Add the following RPC methods and notifications to server and client. These are useful mostly for scripting interaction.
jamulus/getAvailableMethodsjamulusserver/getClientDetailsjamulusserver/privateChatMessageCHANGELOG: Add new RPC methods and notifications (mostly for scripting interaction) to server and client
Context: Fixes an issue?
Relates to #3029 #3447 #2828 #1057 #1371
This is needed for Jamban and others.
Does this change need documentation? What needs to be documented and how?
I guess the automated RPC documentation is sufficient?
Status of this Pull Request
up for discussion
What is missing until this pull request can be merged?
Approval
Checklist