mineflayer
mineflayer copied to clipboard
Please decrease the timeout of bot connection if server is offline
Please decrease the timeout of the bot connection from 120 seconds to 5 seconds as its very useless to wait for 120 seconds and instead of throwing error on console pls make the package return the error instead
Those 2 points are options, you can find the name of the timeout option in the doc, and pass it to create bot You can listen to the error even and crash the program if you want
On Mon, Jul 11, 2022, 14:31 ShreshthTiwari @.***> wrote:
Please decrease the timeout of the bot connection from 120 seconds to 5 seconds as its very useless to wait for 120 seconds and instead of throwing error on console pls make the package return the error instead
— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/2692, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437VFBOJDKXHWHICNWETVTQHYPANCNFSM53HLHOGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
is timeout in seconds or milliseconds
Docs say milliseconds