mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Please decrease the timeout of bot connection if server is offline

Open ShreshthTiwari opened this issue 3 years ago • 3 comments

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

ShreshthTiwari avatar Jul 11 '22 12:07 ShreshthTiwari

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: @.***>

rom1504 avatar Jul 11 '22 12:07 rom1504

is timeout in seconds or milliseconds

ShreshthTiwari avatar Aug 11 '22 08:08 ShreshthTiwari

Docs say milliseconds

amoraschi avatar Aug 11 '22 09:08 amoraschi