Group text messages
Learn how to send and receive text messages in channels.
Read time 1 minuteLast updated 7 months 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 message. When this request is sent to the Vivox SDK, other users in that channel receive a method.
vx_request_session_send_messagevx_evt_messageThe 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);}