sdroege/async-tungstenite

Examples for WSS server with Tungstenite

Redrield opened this issue · 1 comments

I'm unclear the method to accept clients wishing to communicate over TLS. From looking at the code I don't see a definition of any accept function under the TLS modules, and there aren't examples for this usecase either.

It works exactly like the server example, just that instead of accepting connections on a TcpConnection directly you would e.g. use the TlsAcceptor from async-native-tls in between to get the stream that is passed to async_tungstenite::accept_async.