createRoom method

Future<NIMResult<NIMSignallingChannelInfo>> createRoom(
  1. NIMSignallingChannelType channelType,
  2. String? channelName,
  3. String? channelExtension
)

创建信令房间 频道与房间一一对应, 可以理解为同一个东西 相同的频道名,在服务器同时只能存在一个 房间创建默认有效时间2个小时

@param channelType 频道类型 @param channelName 频道名称 @param channelExtension 频道扩展字段 @return Future representing the result of the room creation

Implementation

Future<NIMResult<NIMSignallingChannelInfo>> createRoom(
    NIMSignallingChannelType channelType,
    String? channelName,
    String? channelExtension) {
  return _platform.createRoom(channelType, channelName, channelExtension);
}