leaveRoom method
离开信令房间 该接口调用后会触发离开通知给房间内所有人
@param channelId 频道ID @param offlineEnabled 是否需要存离线消息。如果存离线,则用户离线再上线会收到该通知 @param serverExtension 服务端扩展字段, 长度限制4096 @return Future representing the result of leaving the room
Implementation
Future<NIMResult<void>> leaveRoom(
String channelId, bool? offlineEnabled, String? serverExtension) {
return _platform.leaveRoom(channelId, offlineEnabled, serverExtension);
}