SendMessageToClient
Description
This function sends a single message to a particular client in your server. This is very useful in some games where you only want to send one signal at a time.
The Receiver’s client id should be the integer client id of the client you want to send a message to.
📌 Please make sure the message is a string! If you want to share more detailed information in this message, turn it into a struct and json_stringify it and then send that string.
Syntax
Returns
Where will the receiver get this message?
After a successful message send on your server, the callback function callback_ReceivedEvent() is called on the receiver's end.
Last updated