You can load the available chatrooms with the method
FreiChat.loadchatroom()
It requires the following arguments
title -> chatroom title
id -> chatroom id
type -> chatroom type where 0 is normal & 1 is password protected
All the chatroom information is stored in an array FreiChat.room_array
It is an array of objects containing all information of a particular chatroom .
For eg FreiChat.room_array[0] is
{
online_count: "0"
room_author: "admin"
room_id: "3"
room_name: "Think out loud"
room_type: "0"
}
So you can load the first chatroom in the chatroom list by :
FreiChat.loadchatroom(FreiChat.room_array[0].room_name, FreiChat.room_array[0].room_id, FreiChat.room_array[0].room_type)
similarly second chatroom can be loaded by:
FreiChat.loadchatroom(FreiChat.room_array[1].room_name, FreiChat.room_array[1].room_id, FreiChat.room_array[1].room_type)
And so on...
You can load the available chatrooms with the method
FreiChat.loadchatroom()
It requires the following arguments
title -> chatroom title
id -> chatroom id
type -> chatroom type where 0 is normal & 1 is password protected
All the chatroom information is stored in an array FreiChat.room_array
It is an array of objects containing all information of a particular chatroom .
For eg FreiChat.room_array[0] is
<code>
{
online_count: "0"
room_author: "admin"
room_id: "3"
room_name: "Think out loud"
room_type: "0"
}
</code>
So you can load the first chatroom in the chatroom list by :
<code>
FreiChat.loadchatroom(FreiChat.room_array[0].room_name, FreiChat.room_array[0].room_id, FreiChat.room_array[0].room_type)
</code>
similarly second chatroom can be loaded by:
<code>
FreiChat.loadchatroom(FreiChat.room_array[1].room_name, FreiChat.room_array[1].room_id, FreiChat.room_array[1].room_type)
</code>
And so on...