How to use Secure Websocket with the swarm #5215
Unanswered
DeepHorizons
asked this question in
Q&A
Replies: 1 comment
-
I used |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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)
Beta Was this translation helpful? Give feedback.
All reactions