Skip to content
Discussion options

You must be logged in to vote

I think you need to indicate server hostname see #9259, however uwebsockets does not seem to have that option, i.e.
at https://github.com/danni/uwebsockets/blob/440edabe31f85fced35d652c18d9ac26509f8bb6/uwebsockets/client.py#L22
should be like this:

...
sock = socket.socket()
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)
...

If this does not work I will check that the self hosted web socket server is using a compatible version of TLS i.e. up toTLS v1.2 and that there are common cipher-suites between the server and the client, other than that it should work 👍🏼

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yamenk-gribaudo
Comment options

@Carglglz
Comment options

Answer selected by yamenk-gribaudo
@yamenk-gribaudo
Comment options

@yamenk-gribaudo
Comment options

@baqwas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
4 participants