-
-
Notifications
You must be signed in to change notification settings - Fork 540
Can this be used without async/await? #173
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
Comments
@roman-ku since it is based on asyncio you can't use without async/await.... Edit: i thought you was trying to use without coroutines features. sorry about misunderstood. |
Yes, you can use websockets without If your question really was "can I use websockets in a synchronously", as @qwexvf correctly points out, websockets isn't a good choice for you. In that case, I suggest using another library, as websockets is a very small library whose sole purpose is to provide a convenient asynchronous API. |
Yes my question was, can I use websockets synchronously. I need the response from the server before doing more stuff. Alright thanks guys. I'll look for a different library. |
Is there another library to use websockets synchronously? |
I'm not super familiar with the landscape of other libraries. Since this issue was filed, I started working on a solution to this problem, see #885. |
I tried removing the async/await and got this error:
The text was updated successfully, but these errors were encountered: