Type alias UID

UID: number | string

The user ID to identify a user in the channel.

Each user in the same channel should have a unique user ID with the same data type (number or string).

To ensure a better end-user experience, Agora recommends using a number as the user ID. See join for details.