From fb50c298ec54b66d696add52061222af1aa9b0db Mon Sep 17 00:00:00 2001 From: wsybok Date: Tue, 15 Oct 2024 10:05:23 +0800 Subject: [PATCH 1/2] Update client.py replace ussl with ssl for latest version of micropython --- uwebsockets/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwebsockets/client.py b/uwebsockets/client.py index 42a5a54..3fca432 100644 --- a/uwebsockets/client.py +++ b/uwebsockets/client.py @@ -9,7 +9,7 @@ import usocket as socket import ubinascii as binascii import urandom as random -import ussl +import ssl from .protocol import Websocket, urlparse From 8c10c7b02266f01bc55f4df61904b562e9d8cf30 Mon Sep 17 00:00:00 2001 From: wsybok Date: Mon, 3 Feb 2025 22:20:38 +0800 Subject: [PATCH 2/2] Update client.py update ssl version --- uwebsockets/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uwebsockets/client.py b/uwebsockets/client.py index 3fca432..27bacd2 100644 --- a/uwebsockets/client.py +++ b/uwebsockets/client.py @@ -34,7 +34,7 @@ def connect(uri): addr = socket.getaddrinfo(uri.hostname, uri.port) sock.connect(addr[0][4]) if uri.protocol == 'wss': - sock = ussl.wrap_socket(sock, server_hostname=uri.hostname) + sock = ssl.wrap_socket(sock, server_hostname=uri.hostname) def send_header(header, *args): if __debug__: LOGGER.debug(str(header), *args)