-
-
Notifications
You must be signed in to change notification settings - Fork 540
How to open multiple clients? #382
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
There isn't enough info here for me to help you. Your code runs the connections to locationA and locationB one after the other. You don't have multiple clients connected in parallel in this example. So I don't understand what you mean by "multiple clients". I don't know what locationA and locationB are, but they're probably not a WebSocket server that accepts your connection, because they don't even return a valid HTTP response (based on "Malformed HTTP message" — you didn't say where you were seeing that message). |
@aaugustin thanks you reply. I went clients connected in parallel at the same time.
example:
|
That's really a question about asyncio, not about websockets. Take a look at (I'm still unsure of how that question is related to the error messages you showed in your original message.) |
@aaugustin thanks. I will try to dig more about asyncio. |
Do you have something example to open multiple clients?
I try something like this:
I will get errors:
The text was updated successfully, but these errors were encountered: