Exception in Thread Timer User Is Not Joined Target Room

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
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby Lapo » 28 Dec 2016, 09:24

repo1 wrote:Hi can you give us paid code support

Bugs

1) 10 Tcp frame comes in 1000ms from server (as seen in web developer tools)

In mobile chrome browser can show 8 to 9 frames , dekstop browser only can show 3 to 4 frame and on browser on server can show all the frame none of missing

What is a TCP frame?

see This demo link [url](http://193.70.40.179/lablesocket/[/url])

In Chrome all I see is a clock showing the current date and time. What I am supposed to see?

2) In mobile on screen lock button press socket get disconnected and not auto reconnecting

This behavior changes based on the mobile device and type of application you're using.
Native applications usually don't loose connections, but sometimes they do. This is outside of the control of the API as it is controlled by the operating system, therefore you will need to work around it.

If the connection is shut down you will need to listen for OS-specific events (such as app going to background and viceversa) and restart a new connection when the app is woken up again.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
repo1
Posts: 23
Joined: 21 Dec 2016, 11:36

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby repo1 » 28 Dec 2016, 11:51

Please check screen shot

Here server data throw 10 times in 1000ms
but browser only can show 3 time in 1000ms
mobile browser can show 9 times in 1000ms

http://193.70.40.179/lablesocket (see this link you will find frame in chrome firebug or console)
Attachments
frame.png
(25.37 KiB) Not downloaded yet
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby Lapo » 28 Dec 2016, 16:21

Sorry, I have no idea what the problem is...

What does it mean that the browser can only "show 3 times"? Show what?
Please describe the problem in detail.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
repo1
Posts: 23
Joined: 21 Dec 2016, 11:36

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby repo1 » 28 Dec 2016, 16:34

Means clock update after 300ms actual update time is 100ms
Example
clock should be
12:00:000
12:00:100
12:00:200
12:00:300
12:00:400
12:00:500
12:00:600
12:00:700
12:00:800
12:00:900
and so on

But Current clock is
12:00:000
12:00:300
12:00:600
12:00:900
12:01:200
and so on
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby Lapo » 28 Dec 2016, 16:49

TCP can aggregate packets together, so in one message you can receive 3-4 packets or more depending on the size of each packet.
This is due to the Nagle's algorithm ( https://en.wikipedia.org/wiki/Nagle's_algorithm )

Also you should not assume that packets will arrive at the client exactly at a specific time because you need to account for latency, retransmission, and overall quality of the connection.
Lapo

--

gotoAndPlay()

...addicted to flash games
repo1
Posts: 23
Joined: 21 Dec 2016, 11:36

Re: Exception in Thread Timer User Is Not Joined Target Room

Postby repo1 » 28 Dec 2016, 19:37

Thanks lapo i increase packet size and it works so fine

Thankssssss so muchhhhhh

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 95 guests