AAhad
AAhad

Reputation: 2845

Worklight: Average size of request from App to Server

Sometimes i see a reconnect to WL server dialog box appears at the start-up of the App and sometimes it doesn't popup. My client has objection on this, they want to completely get rid of the "connection failure and re-try again...." message. I told them that sometimes due to weak signals this will happen.

Now he asks for:

  1. Average size of request the device make and average size of response that goes back?
  2. What bandwidth at minimum is required that must remain available on the network?

Kindly suggest on this, or anything i have to do like optimization :)

Thanks

Upvotes: 0

Views: 91

Answers (1)

Anton
Anton

Reputation: 3166

It is hard to calculate an accurate average request/response size as it heavily depends on your application functionality.

If you want to disable the default connectivity failure behaviour (including the dialog) you need to specify your onConnectionFailure call back in initOptions. This way your callback function will be invoked instead of a default one and it is up to you to decide what should application behave like.

Upvotes: 1

Related Questions