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 withCONNECTINGstate immediately when the connection beginsonMeetingStateChanged— emitted withCONNECTEDstate when the socket connection is establishedonMeetingJoined— emitted on the local participant when the meeting is joinedonParticipantJoined— emitted for each existing participant already in the room, and on remote participants for the new joineronStreamEnabled— emitted on the local participant if mic or webcam is enabled on joinonError— emitted with code3012(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.onMeetingStateChangedthen emitsFAILEDand the join stops
Code Example:
meeting.join()
Content copied to clipboard