Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions uwebsockets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down