how those settings with multiple servers works? Can I set up a threshold after which request will be made to next server as fallback?
PS. Upvoted, Resteemed on Steemit and Stared on Github :)
PS.2. I've just noticed, that you also published guide to this library - to not miss next ones, I also following you now :)
by default, the client will only sent the API calls to one of the connected servers, and it won't fallback to next servers should any error occur.
However, there's a workaround to force an API request to be submitted to all servers.
To use this, you have to call the method in the form of taking arguments as an options-object (as explained in the Guide), and pass in a validating function as 'broadcast' property. The client will sent the APi calls to all servers simultaneously, and callback as soon as it saw a response that pass the validating function... if all failed then the callback will be called with last-received-result.
Example:
thank you for advertising this post @noisy - be happy to upvote @ripplerm over these libraries.
Let me introduce you to http://steemspeak.com where information travels faster, @ripplerm. :)