New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop method #34
Comments
We need to implement a way to stop these goroutines. Maybe check out the fork of @kaxap. He improved on it if I remember correctly. |
@was1l1sk Maybe you can implement the context package into the api and start a PR if you have spare time. |
@SchulteMK I had the same issue as @was1l1sk so I made this quick hack. The problem is it doesn't close the websocket connection, just signals go routines to stop. The connection is left open, but it is going to be closed by the server soon. |
#114 added |
Yes you are right. I must have overlooked this issue when I was closing issues related to that PR. |
great work
I did not find any method for stopping connection and running gorutins like:
go wac.readPump ()
go wac.writePump ()
go wac.keepAlive (20000, 90000)
I just wrapped the bot in the web interface that the bot activates. And I want to turn it off without closing the whole application. I wanted to close using the context.WithCancel but this is not enough
And... Does whatsapp ban a bots?
The text was updated successfully, but these errors were encountered: