Skip to content

Commit

Permalink
fix: include username, userID, options for prebuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Oct 10, 2023
1 parent 1a3bdea commit 30a344d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/javascript/v2/quickstart/prebuilt-quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,16 @@ HMSPrebuilt accepts the following props:
`role` (optional unless roomId is specified)
- A string specifying the role of the peer. Should be specified if the roomId is being used to join the room.

`onJoin` (optional)
- A callback function that will be executed after the peer joins the call.

`onLeave` (optional)
- A callback function that will be executed after the peer leaves the call, the session ends or if the peer gets kicked out.

`options` (optional)
- An object which accepts the following parameters:
- `userName` (optional): The name to be assigned to the peer.

- `userId` (optional): The user ID to be assigned to the peer.

- `endpoints` (optional): The init and token endpoints can be passed here with `init` and `tokenByRoomCode` as keys.

0 comments on commit 30a344d

Please sign in to comment.