Documentation

Support

Vivox Core SDK

Vivox Core SDK

Group text messages

Learn how to send and receive text messages in channels.
Read time 1 minuteLast updated 20 hours ago

If a game has joined a channel with text enabled, then a user can send and receive group text messages. To send messages, the game uses the
vx_request_session_send_message
message. When this request is sent to the Vivox SDK, other users in that channel receive a
vx_evt_message
method.
The following code displays an example of the process for sending and receiving group text messages:
. . .vx_req_session_send_message *req;vx_req_session_send_message_create (&req);req->session_handle = vx_strdup("mychannel");req->message_body = "Here I am!";vx_issue_request3(&req->base, &request_count);. . .void HandleEventMessage(vx_evt_message *evt){ printf("Saw %s from user %s in %s\n", evt->message_body, evt->participant_uri, evt->session_handle);}