-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: add IPv6 support #39
Conversation
Couple of notes. First, the async client would need to be changed to support the same functionality, and ideally with the same change in the constructor arguments. Second, I'm thinking there is another possible way to handle this, which would involve calling |
Hey @miguelgrinberg, first sorry to take longer to work on your feedback. Work has been crazy these days 🥲 So, I have checked the async client but it seems it uses different implementation without the need to pass address_family there so i assume that the async client handles it automatically? I made the changes but to be honest in a moment it feels wrong so let me know if you really need it there :) I fixed also a typo on |
I have implemented a simpler solution based on |
Hey, first of all thanks for the amazing project! :)
I'm implementing a python project using
simple-websocket
on Railway and realized thatsimple-websocket
don't support IPv6 yet. So i took the time to change theAF_INET
toAF_INET6
. Following the documentation specifics about the differences between both it should enough to use justAF_INET6
for now :)I could be wrong here, but prefer to open the PR here so we can may add support in future? Thanks!