기술 자료

지원

Vivox Unity SDK

Vivox Unity SDK

도배 방지

Implement anti-flooding measures for text chat.
읽는 시간 1분최근 업데이트: 19일 전

사전 로그인 파라미터
MaxTextMessageRate
를 구성하여 속도 제한을 구성할 수 있습니다. 0으로 설정하면 기능이 비활성화됩니다.
속도 제한은 Vivox SDK에 의해 적용됩니다. 사용자가 허용된 것보다 빠른 속도로 메시지를 전송하려고 하면
VxErrorMessageTextRateExceeded
오류가 반환됩니다.
vx_req_account_send_msg *req;vx_req_account_send_msg_create(&req);req->connector_handle = vx_strdup("c1");req->account_handle = vx_strdup(".issuer-w-dev.mytestaccountname.");req->language = vx_strdup(“en-us”);req->user_uri = vx_strdup("sip:theotheruser@vd1.vivox.com");req->message_body = vx_strdup("Hey there buddy!");int status = vx_issue_request2(&req->base); // If rate limiting is surpassed, status = VxErrorMessageTextRateExceeded