GoogleChromeLabs / pywebsocket3

BSD 3-Clause "New" or "Revised" License
44 stars 32 forks source link

Migrate ssl.wrap_socket to SSLContext.wrap_socket #39

Open zaurask opened 5 months ago

zaurask commented 5 months ago

The ssl.wrap_socket function was removed in 3.12. This PR migrates ssl.wrap_socket to SSLContext.wrap_socket by recreating the logic already used internally by ssl.wrap_socket when called from pywebsocket3.

Tested by successfully running WPT locally.

Fixes #38.