PLAYER_TO_SPECTATOR from server side, not firing events.

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

PLAYER_TO_SPECTATOR from server side, not firing events.

Postby levancho » 16 Nov 2012, 20:27

Hi,

I have a problem where I am changing user which is spectator into player om serverside inside extension,
on client side I am listening to PLAYER_TO_SPECTATOR event and I am also listening to SPECTATOR_TO_PLAYER event
and i am not receiving those events at all on the client,

is this becase I am doing this operations on server side ?
my setup on client :
when I subscribed for those events i was in the room, and I also (just in case) subscribed for the group that room belongs to , but still I am not receiving events for those 2 events types.

I am receiving events for user count, after I subscribed for the group , but that did not help those 2 events,
any ideas?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: PLAYER_TO_SPECTATOR from server side, not firing events.

Postby rjgtav » 16 Nov 2012, 22:06

Hi,

How are you changing the user from player to spectator on the server-side?
And when are you doing? At the moment the user joins the room?
And is that room a Game Room?
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.
User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

[FIXED] PLAYER_TO_SPECTATOR from server side, not firing eve

Postby levancho » 17 Nov 2012, 11:44

I found the problem, developer was doing room.spectatorToPlayer
i fixed it by ussing api method instead.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 51 guests