You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you guys considering adding timeouts to the requests made in the library? My understanding is that there is no timeouts in superagent, and therefore some requests might never end, which is something that I am seeing happening in mobile env with not a great connectivity.
A possibility would be to extend the Defaults with a timeout, that would be applied to the request in the _request(), and that I could override when creating the Particle object in my app:
particle = new Particle({
baseUrl: 'https://api.particle.io',
clientSecret: 'particle-api',
clientId: 'particle-api',
tokenDuration: 7776000, // 90 days
timeout: 5000
});
The text was updated successfully, but these errors were encountered:
Are you guys considering adding timeouts to the requests made in the library? My understanding is that there is no timeouts in
superagent
, and therefore some requests might never end, which is something that I am seeing happening in mobile env with not a great connectivity.A possibility would be to extend the
Defaults
with a timeout, that would be applied to the request in the_request()
, and that I could override when creating the Particle object in my app:The text was updated successfully, but these errors were encountered: