Im looking to enable secure websockets (wss) on my libp2p app. The example listed in the docs (WsConfig in libp2p::websocket - Rust) give an example of building a transport, but now how to integrate it with the swarm. Ive tried using the WsConfig with the with_websocket() function but I dont think I can use it there. Next I tried to use .with_other_transport() but could not figure out how to map the connections to what the function wants.
How can I add a wss transport to the swarm so I can listen on /ip/tcp/0/wss/%2Ftest (/ip/tcp/0/wss//test)
Does this work to get secure websocket connections? I think typically we use websockets and then do Noise for the confidentiality instead of TLS. The next rust-libp2p meeting is next Tuesday, August 13th: rust-libp2p Open Maintainers Call · Luma I think you should show up and ask about this…you’ll get a better answer.