closeRoom method
关闭信令房间 该接口调用后会触发关闭通知给房间内所有人 房间内的所有人均可以调用该接口 信令房间如果没有主动调用接口关闭,会等待2个小时,2个小时没有新的用户加入,则服务器自行销毁对应的信令房间
@param channelId 频道ID @param offlineEnabled 是否需要存离线消息。如果存离线,则用户离线再上线会收到该通知 @param serverExtension 服务端扩展字段, 长度限制4096 @return Future representing the result of the room closure
Implementation
Future<NIMResult<void>> closeRoom(
String channelId, bool? offlineEnabled, String? serverExtension) {
return _platform.closeRoom(channelId, offlineEnabled, serverExtension);
}