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 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, andmemberare alphanumeric.roomNamestarts with 's' or 'p' and meets length requirements.sec,islevel, andapiUserNamecomply 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