Create Room

createRoom() will create a new meeting room and return the room ID. This room ID can be used to join the room using joinRoom() method on client side. While creating room, you can pass following details.

Parameters

ParamsDefinitionData TypeMandatory
roomLockedThe start time of the room. This will be displayed in the room list.booleantrue
metadataThis can be custom data that you want to store with the room. This data will be returned when you fetch the room details.objectN

Example

import { API } from '@huddle01/server-sdk/api';
 
const getRoomId = async () => {
  const api = new API({
    apiKey: process.env.API_KEY!,
  });
 
  const newRoom = await api.createRoom({
    roomLocked: true,
    metadata: JSON.stringify({
      'title': 'Huddle01 Meeting',
    })
  });
 
  return newRoom;
};
Audio/Video Infrastructure designed for developers to empower them to ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2024 Graphene 01, Inc. All Rights Reserved.