fix(rust): don't use failed identify messages to detect disconnection
Previously, we were using a timeout on the identify protocol to detect disconnected peers. Detecting closed browser tabs within the transport stack now works correctly so we no longer need this hack.
I tested this locally using the latest deployed version on vercel.app.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| universal-connectivity | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 4, 2023 2:06am |
Setting to draft until we have CI.
While working on this, I noticed a strange behaviour @libp2p/js-libp2p-dev. The js-peer within this repository doesn't support the ping protocol. That is fine. What is weird is that I am running into negotiation timeouts when trying to use it. In other words, multistream-select doesn't seem to correctly respond with na. Instead, it seems to just not return anything.