The options for joining the room.
A promise that resolves with the data received from the 'joinRoom' event or rejects with a validation error.
const options = {
socket: socketInstance,
roomName: "s12345678",
islevel: "1",
member: "user123",
sec: "64CharacterLongSecretHere",
apiUserName: "user123",
};
try {
const response = await joinRoom(options);
console.log("Room joined:", response);
} catch (error) {
console.error("Failed to join room:", error);
}
Joins a user to a specified room via a socket connection.