Event and Extension response ordering

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

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

Event and Extension response ordering

Postby grhwood » 25 Nov 2011, 13:58

I use SFSEventType.USER_JOIN_ROOM to send out a extension. Can i assume that the JoinRoom event reaches clients before the extension ?

Thank you.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 25 Nov 2011, 16:55

Hi.

I'm sorry but I can't understand your question. Are you saying that you're sending an extension response after that even't is fired in the extension?

If so, yes i'm pretty sure that the extension response will arrive after the ROOM_JOIN event.
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.
grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

Postby grhwood » 25 Nov 2011, 18:52

Yes, I send the extension response after a event. For example: user join a room => JoinRoom event will be fired on both client side and server side, on the server side, i handle the JoinRoom event and send out an extension. So client side will be received 2 message: JoinRoom event message and my extension message.

So how about the ordering of JoinRoom event message and my extension message ?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 25 Nov 2011, 19:33

In theory, the extension response should arrive after the ROOM_JOIN event, that's something you can confirm easily :-)
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.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: ppu-pro_sAg and 108 guests