What is a transparent channel and how to use it?

Source: Internet
Author: User

As the name suggests, "transparent channel" is a channel provided by anychat SDK for upper-layer applications to transmit data. Because anychat SDK does not care about the transmitted content, that is, the transmitted data is "Transparent" compared with the SDK, and is called "transparent channel ".

 

Upper-layer applications can use the transparent channel provided by the SDK to expand their services. There is no limit on the content transmitted. It can be a buffer of any data type. The maximum size of a single transmission is 1000 bytes, for example, you can use a transparent channel to transmit custom commands on the business. After receiving the data, the receiver will generate a transparent channel data callback and parse the commands in the callback function, and perform corresponding business logic processing.

 

Versions earlier than v2.8.7 can only broadcast data to any two users in the current room or to all users in the room.

 

Starting from version 2.8.7, you can use a transparent channel interface between two successfully logged-on users to transmit custom data. The size of each data transmission is 1000 bytes. If you are in the room, transparent channels can also be used to broadcast data to all users in the room. For details, refer to: 41. brac_transbuffer

 

If a large amount of buffer data needs to be transferred between any two users in the room, you can use the Extended Interface: 42. brac_transbufferex, the SDK automatically completes the subcontracting, group package, and validation of the large buffer zone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.