export const isValidRoomType = ( type ) : boolean => { if ( type === "sfu" || type === "mesh" ) { return true ; } return false ; } ; export const maxRoomIdLength = 16 ; export const roomIdRe = "^[0-9a-z_-]{4,16}$" ; export const isValidRoomId = ( name ) : boolean => { return new RegExp ( roomIdRe ) . test ( name ) ; } ;