whatsmeow
whatsmeow copied to clipboard
Add ConnectWithTimeout method to support having a timeout when connecting.
This pull request adds a new method called ConnectWithTimeout
to support having a timeout set when connecting to whatsapp. This context.Conext
is later on passed to fs and is used when connecting (previously, we have been using contect.Backgound()
for the fs).
Can also use context.Background()
if we do not want any timeout.