Parse-SDK-JS icon indicating copy to clipboard operation
Parse-SDK-JS copied to clipboard

Enable ability to set health check polling interval

Open tlcaudill opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. Parse server health check polling for browser clients is started as part of the Parse.initialize() call via '_EventuallyQueue.default.poll();' The default polling interval is 2 seconds, but there doesn't appear to be a way to change that without modifying the code. Many Parse Server hosting providers charge based on API calls so the constant polling increases the API calls count per client to the point where it becomes cost-prohibitive to use.

Describe the solution you'd like It would be helpful to be able to pass a parameter to the Parse.initialize to indicate the polling interval to use for the browser client.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

tlcaudill avatar Jul 01 '21 22:07 tlcaudill

I believe a good place to put this would be Parse.enableLocalDatastore(). In the iOS SDK the eventually queue and local datastore are closely related on each other. We can add it here to ensure consistency with the other SDKs.

https://github.com/parse-community/Parse-SDK-iOS-OSX/blob/2e4242c683e645a7d78ff37dd34398119178c0c5/Parse/Parse/Internal/ParseManager.m#L169

@mtrezza @davimacedo

dplewis avatar Oct 13 '21 01:10 dplewis

Yes. It makes sense to me.

davimacedo avatar Oct 13 '21 06:10 davimacedo

The label type:feature cannot be used in combination with type:improvement.

@mtrezza This should be closed via https://github.com/parse-community/Parse-SDK-JS/pull/1419

dplewis avatar Oct 13 '22 00:10 dplewis

Closing via #1419

mtrezza avatar Oct 13 '22 01:10 mtrezza