> For the complete documentation index, see [llms.txt](https://rocket-networking.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rocket-networking.gitbook.io/docs/rocket-networking-code/private-messaging/sendmessagetoclient.md).

# 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

```
SendMessageToClient(recieverClientId, yourMessage);
```

| Argument           | Description                                                           |
| ------------------ | --------------------------------------------------------------------- |
| `recieverClientId` | The clientId of the recipient of your message. This must be a Number. |
| `yourMessage`      | <p>The message you want to send. <br>Must be a String</p>             |

#### Returns

```
N/A
```

## 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.
