(Room) from private to public

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Michele
Posts: 2
Joined: 31 Aug 2011, 13:53

(Room) from private to public

Postby Michele » 31 Aug 2011, 14:03

Hello,
Can i convert a private room in public?
The room is created with the createRoom method of the SmartFoxClient class.

Thanks :wink:
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 31 Aug 2011, 14:38

Hi. Hum... not sure if it is possible...

In this topic that is still from this year, Lapo says that in "the next major update" it will be possible.

So... there's not yet a method to change a room from private to public.

But, you can always do it your way instead using sfs way hehe.

For example, you could create a room variable called "private" and then you could change it as you want (its recommended for you to set the variable owner to null, set persistent to true and only update it via a server-side extension).

Then on the client instead of doing if(room.isPrivate()), you would do if(room.getVariable("private"))...
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Michele
Posts: 2
Joined: 31 Aug 2011, 13:53

Postby Michele » 01 Sep 2011, 06:37

I understand. Thanks.
I will find another way! :wink:

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 18 guests