Vovaman / micropython_async_websocket_client

This websocket client allows to interchange (read/write) data with server. It is created to run on ESP32 controllers.
Apache License 2.0
36 stars 8 forks source link

Does this Lib support Sec-WebSocket-Protocol (sub-protocols) ? #10

Open QGB opened 1 year ago

QGB commented 1 year ago

any plan?

Vovaman commented 1 year ago

https://github.com/Vovaman/example_async_websocket#wss-protocol

QGB commented 1 year ago

https://stackoverflow.com/questions/67436517/what-is-a-websocket-subprotocol

Vovaman commented 1 year ago

...and what?

QGB commented 1 year ago

would you like show me sub-protocols ws client code example?

Vovaman commented 1 year ago

So, https://github.com/Vovaman/example_async_websocket#wss-protocol contains example for wss...

QGB commented 1 year ago

WebSocket Sub-Protocols is not WSS (WebSocket Secure)

Sub-Protocols does not depend on HTTPS

Vovaman commented 1 year ago

So, you may define your own ws-subprotocol and use it over ws. This project realize base ws-packet interchange.