Increase the upper limit of the number of people in the room and reduce the cost of subscribing to long connections. (sdk upgrade to the latest support)
Detailed description of read-only mode and interactive mode
const room = await whiteWebSdk.joinRoom({
uuid: uuid,
roomToken: roomToken,
isWritable: false, // Write {isWritable: false} in the parameters of the jionRoom method, good performance
...
},
const room = await whiteWebSdk.joinRoom({
uuid: uuid,
roomToken: roomToken,
...
},
room.setWritable(false); // Write {isWritable: false} in the parameters of the jionRoom method, flexible
After enabling read-only, all member methods and member properties under the room
object that need to interact with the server will lose their effect, and an error will be reported if they are called in read-only mode. In order to facilitate customer integration and reduce interference by error reports, we provide a unique error level adjustment api in read-only mode.
const room = await whiteWebSdk.joinRoom({
uuid: uuid,
roomToken: roomToken,
rejectWhenReadonlyErrorLevel: RoomErrorLevel.Ignore, // js uses the string "ignore"
...
},