-
Notifications
You must be signed in to change notification settings - Fork 760
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
on_open && ws.send() #980
Comments
cause the ws.run_forever() method is a blocking method, the program won't continue executing beyond the line self.ws.run_forever(). If you want to send() while run_forever() is running, you may need to run run_forever() in the background as a listener, like this.
` |
Hi, thanks for the reply. Did I understand correctly?
|
y |
but i getting a exception about already closed socket before sending a "test" message |
If i using threads in the on_open function thats working but i would like to sending and using outside this. |
Hi, I just started working with this recently and I can't understand why I can't send a message after opening a socket using run_forever(), does all the logic have to be in on_open, because so far I get that the socket is already closed
The text was updated successfully, but these errors were encountered: