Forum Multiplayer Losing messages!

Discussion and help relating to the PlayerIO Multiplayer API.

Losing messages!

Postby Bestlis » December 12th, 2017, 4:38 pm

Hello!

I have a problem.
I use last SDK for Unity.
Unity ver. 5.6.4f1 for Android.

When device has bad internet connection, it loses messages from server.
But client doesn't lose connection to server, there is no Dosconnect event.

I read, that PlayerIO uses tcp connection, such it garantee messages delivery.
Also, order of messages is wrong too.

What is problem with?
Bestlis
Paid Member
 
Posts: 15
Joined: August 6th, 2014, 3:00 pm

Re: Losing messages!

Postby Henrik » December 13th, 2017, 2:24 am

Hey Bestlis,

A bad internet connection introduces a lot of issues, and many of those depend on the device the game is running on, the network stack used, and the network it's connected to.

A disconnect event happens when the underlying networking layer signals that the connection is definitely broken, but if the connection is just bad, that might not happen.

There should be methods in the Unity API to check the underlying device connectivity status, you might be able to use that to figure out if you need to disconnect and reconnect to the game server.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Losing messages!

Postby Bestlis » December 13th, 2017, 6:58 am

Could you tell me method name?
Bestlis
Paid Member
 
Posts: 15
Joined: August 6th, 2014, 3:00 pm

Re: Losing messages!

Postby Henrik » December 13th, 2017, 11:45 am

Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Losing messages!

Postby Bestlis » December 13th, 2017, 2:12 pm

Thanks!
Bestlis
Paid Member
 
Posts: 15
Joined: August 6th, 2014, 3:00 pm


Return to Multiplayer



cron