Hi,
My game have some lobby rooms in same zone. Every time i switch to new lobby, the system will unsubscribe room group from old lobby and also subscribe new room group. Then i back to old lobby but the game rooms still persist, although in fact these rooms be removed from the server.
Does anyone know how to solve this issue?
Thanks
HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi,
the persistence of a Room is not related with which groups you have subscribed/unsubscribed.
The life cycle of a Room is dictated by the type of Room (standard, game etc...) and can be overridden via the RoomRemoveMode if it was created on the server side.
The basic rules are that:
Standard Rooms are removed when the Room is empty and its creator has gone offline
Game Rooms are removed when the Room is empty
For all the details I'd recommend the docs here:
http://docs2x.smartfoxserver.com/Develo ... chitecture
See the "The Room advanced settings" section.
Cheers
the persistence of a Room is not related with which groups you have subscribed/unsubscribed.
The life cycle of a Room is dictated by the type of Room (standard, game etc...) and can be overridden via the RoomRemoveMode if it was created on the server side.
The basic rules are that:
Standard Rooms are removed when the Room is empty and its creator has gone offline
Game Rooms are removed when the Room is empty
For all the details I'd recommend the docs here:
http://docs2x.smartfoxserver.com/Develo ... chitecture
See the "The Room advanced settings" section.
Cheers
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Lapo,
Everything on server working correctly. Rooms will automatically removed when the game are finished. The only issue i am facing are switching lobby.
For example:
1. Current user login and go to lobby A, subscribe group "lobbyA". At this time lobbyA have some game rooms(ex: game1,game2,game3) are running by other users.
2. Current user switch to lobby B, subscribe group "lobbyB" and unsubscribe lobbyA. After some mins i switch back to LobbyA. This time game1 are already finished from other users and they gone, the room are removed by server side already. But game1 was not be deleted from roomManager object.
Thanks
Everything on server working correctly. Rooms will automatically removed when the game are finished. The only issue i am facing are switching lobby.
For example:
1. Current user login and go to lobby A, subscribe group "lobbyA". At this time lobbyA have some game rooms(ex: game1,game2,game3) are running by other users.
2. Current user switch to lobby B, subscribe group "lobbyB" and unsubscribe lobbyA. After some mins i switch back to LobbyA. This time game1 are already finished from other users and they gone, the room are removed by server side already. But game1 was not be deleted from roomManager object.
Thanks
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
The fact that objects are still available in the RoomManager may be correct, but you obtain the list of Rooms from the SubscribeRoom event, you don't get them directly from the RoomManager.
In other words when you subscribe to a new Room Group you get the updated room list for the Group in the SFSEvent.ROOM_GROUP_SUBSCRIBE event.
Does this help?
In other words when you subscribe to a new Room Group you get the updated room list for the Group in the SFSEvent.ROOM_GROUP_SUBSCRIBE event.
Does this help?
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Lapo,
Yes i did this but the deleted rooms are still appear in ROOM_GROUP_SUBSCRIBE event. So i think its an issue with sfs html5 client api. I am using latest version.
Yes i did this but the deleted rooms are still appear in ROOM_GROUP_SUBSCRIBE event. So i think its an issue with sfs html5 client api. I am using latest version.
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
You're getting deleted Rooms in the ROOM_GROUP_SUBSCRIBE event after they have been deleted?
Can you double check with the admin tool that they are really deleted?
I ask because this doesn't sound like it depends on the specific API (i.e. HTML5) as the Room list is sent by the server so it would be the same for all clients, regardless of the client side technology.
In any case we'll run a test to check this out.
Thanks
Can you double check with the admin tool that they are really deleted?
I ask because this doesn't sound like it depends on the specific API (i.e. HTML5) as the Room list is sent by the server so it would be the same for all clients, regardless of the client side technology.
In any case we'll run a test to check this out.
Thanks
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Lapo,
I checked many time and i am sure the rooms are deleted at server side.
Thanks
I checked many time and i am sure the rooms are deleted at server side.
Thanks
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
We are testing this and you may have found a bug.
We need to further investigate; will let you know our findings soon.
Thank you.
We need to further investigate; will let you know our findings soon.
Thank you.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Thank you Bax and Lapo
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Issue found and (possibly) fixed. If you send us an email, we can send you a prerelease version of the API to check. Thank you.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Bax,
You can send it to my profile email that i used to post to this forum.
Thanks
You can send it to my profile email that i used to post to this forum.
Thanks
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Bax,
Could you please zip the file and send again?
Thanks
Could you please zip the file and send again?
Thanks
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
duylinh013 wrote:Hi Bax,
Could you please zip the file and send again?
Thanks
Did it... did you receive it?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Bax,
I got it and starting to test it right away
Thanks
I got it and starting to test it right away
Thanks
-
- Posts: 28
- Joined: 28 Jul 2016, 01:40
Re: HTML5 client api, rooms not be removed after unsubscribeRoomGroup event
Hi Bax,
My problem is fixed . Thank you very much to your smartfox team.
Best Regards
My problem is fixed . Thank you very much to your smartfox team.
Best Regards
Who is online
Users browsing this forum: No registered users and 84 guests