Group text messages
Learn how to send and receive text messages in channels.
阅读时间1 分钟最后更新于 7 个月前
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);}