validateAndNormalizeUniqueId
validateAndNormalizeUniqueId(
uniqueId):string
Defined in: src/lib/ws/lib/proto-utils.ts:128
Validates and normalizes the uniqueId (username) input for TikTok live room information retrieval. It ensures that the input is a string and extracts the username from various possible formats, such as full URLs or with/without ’@’ symbol. If the input is invalid, it throws an error with a descriptive message.
Parameters
Section titled “Parameters”uniqueId
Section titled “uniqueId”unknown
Input value representing the unique identifier (username) of a TikTok user. This can be in various formats, such as a plain username, a full TikTok URL, or with an ’@’ symbol.
Returns
Section titled “Returns”string