join

fun join()

This method can be used to join the meeting.

After successfully joining, the local participant will receive onMeetingJoined and remote participants will receive onParticipantJoined.

Events:

  • onMeetingStateChanged — emitted with CONNECTING state immediately when the connection begins
  • onMeetingStateChanged — emitted with CONNECTED state when the socket connection is established
  • onMeetingJoined — emitted on the local participant when the meeting is joined
  • onParticipantJoined — emitted for each existing participant already in the room, and on remote participants for the new joiner
  • onStreamEnabled — emitted on the local participant if mic or webcam is enabled on join
  • onError — emitted with code 3012 (ERROR_GET_SERVER_CONFIG_FAILED) if the server configuration request fails (for example an invalid token or no network); the message carries the actual failure reason. onMeetingStateChanged then emits FAILED and the join stops

Code Example:


meeting.join()