Lawouach / WebSocket-for-Python

WebSocket client and server library for Python 2 and 3 as well as PyPy (ws4py 0.5.1)
https://ws4py.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
1.12k stars 288 forks source link

Fix ssl deprecate warn #283

Closed krishnan793 closed 4 months ago

krishnan793 commented 10 months ago

ssl.wrap_socket() is deprecated from python 3.7 (see https://docs.python.org/3/library/ssl.html#ssl.SSLSocket). Based on documentation SSLContext.wrap_socket() should be used instead.

krishnan793 commented 8 months ago

is it possible to add / update relevant tests as well?

All the existing tests are passing.

Ape commented 4 months ago

This needs to be released. It's not only deprecated, as of Python 3.12 the feature has been removed.

Johnius commented 3 months ago

@auvipy Hey! Can we by chance bump the version to release this change?