Pithikos / python-websocket-server

A simple fully working websocket-server in Python with no external dependencies
MIT License
1.14k stars 384 forks source link

Add ssl support #78

Closed eado closed 3 years ago

eado commented 5 years ago

Issue #35 should be resolved.

eado commented 5 years ago

Documentation for the new features should be available in the updated README.md.

kmtvar commented 4 years ago

Thank you for your ssl support. It worked very well. And here is a simple example code for a websocket client.

from websocket import create_connection
import ssl
ws = create_connection("wss://127.0.0.1:13254/", sslopt={"cert_reqs": ssl.CERT_NONE})
receive_message = ws.recv()
print(receive_message)