Joins a conference room with the provided options and performs validation checks.
Contains:
socket: Socket instance for communication.
roomName: Name of the room to join.
islevel: User level within the room.
member: Member identifier.
sec: Security token.
apiUserName: API username for authentication.
Validation:
roomName
apiUserName
member
sec
islevel
Response Handling:
Resolves with the join response data, or rejects with error details.
Throws validation errors or issues encountered while joining the room.
const joinOptions = { socket: mySocket, roomName: 'sMyRoom', islevel: '1', member: 'participant123', sec: '64-character-long-secret-key-here...', apiUserName: 'apiUser123',};joinConRoom(joinOptions) .then(response => console.log('Joined room:', response)) .catch(error => console.error('Failed to join room:', error)); Copy
const joinOptions = { socket: mySocket, roomName: 'sMyRoom', islevel: '1', member: 'participant123', sec: '64-character-long-secret-key-here...', apiUserName: 'apiUser123',};joinConRoom(joinOptions) .then(response => console.log('Joined room:', response)) .catch(error => console.error('Failed to join room:', error));
Joins a conference room using the provided options.
The options for joining the conference room.
A promise that resolves with the response of the join operation.
If any of the required parameters are missing or invalid.
If the user is banned, suspended, or if the host has not joined the room yet.
Joins a conference room with the provided options and performs validation checks.
Param: options
Contains:
socket: Socket instance for communication.
roomName: Name of the room to join.
islevel: User level within the room.
member: Member identifier.
sec: Security token.
apiUserName: API username for authentication.
Validation:
roomName
,apiUserName
, andmember
are alphanumeric.roomName
starts with 's' or 'p' and meets length requirements.sec
,islevel
, andapiUserName
comply with length and format expectations.Response Handling:
Returns
Resolves with the join response data, or rejects with error details.
Throws
Throws validation errors or issues encountered while joining the room.
Example