feat(wasm-visor): multi-type autoconnect — dial WS AND WT to each public visor#3306
Merged
Merged
Conversation
…lic visor A native visor makes BOTH stcpr and sudph to the same public visors (autoconnect.go) for redundancy + path diversity. The browser analog is WS (TCP) + WT (QUIC); until now the wasm autoconnect dialed only WS. The autoconnect now dials both carriers to each public visor: - WS rides the stcpr cmux port (resolve stcpr IP, ws://ip:port/) — unchanged. - WT: new arDmsg.resolveWT fetches the peer's AR WT record (/resolve/wt) — the https://host:port/skywire endpoint + the pinned self-signed cert hash (stored by BindWT) — sets the wtTable entry and SaveTransport(WT). Needs the browser-native WT dial (skycoin#3305) and the AR WT records (skycoin#3302/skycoin#3303 deployed). Counts DISTINCT visors now (a peer may hold both a WS and a WT transport), and a peer with no WT record (404) just gets WS — graceful until the fleet registers WT. Refreshes the committed wasm blob.
0pcom
added a commit
that referenced
this pull request
Jul 7, 2026
…lic visor (#3306) A native visor makes BOTH stcpr and sudph to the same public visors (autoconnect.go) for redundancy + path diversity. The browser analog is WS (TCP) + WT (QUIC); until now the wasm autoconnect dialed only WS. The autoconnect now dials both carriers to each public visor: - WS rides the stcpr cmux port (resolve stcpr IP, ws://ip:port/) — unchanged. - WT: new arDmsg.resolveWT fetches the peer's AR WT record (/resolve/wt) — the https://host:port/skywire endpoint + the pinned self-signed cert hash (stored by BindWT) — sets the wtTable entry and SaveTransport(WT). Needs the browser-native WT dial (#3305) and the AR WT records (#3302/#3303 deployed). Counts DISTINCT visors now (a peer may hold both a WS and a WT transport), and a peer with no WT record (404) just gets WS — graceful until the fleet registers WT. Refreshes the committed wasm blob.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Final PR of the WebTransport carrier build — the browser dial side.
A native visor makes both stcpr and sudph to the same public visors (
autoconnect.go) for redundancy + path diversity. The browser analog is WS (TCP) + WT (QUIC); the wasm autoconnect dialed only WS.Now it dials both carriers to each public visor:
ws://ip:port/) — unchanged.arDmsg.resolveWTfetches the peer's AR WT record (/resolve/wt): thehttps://host:port/skywireendpoint + the pinned self-signed cert hash (stored byBindWT), sets thewtTableentry, andSaveTransport(WT). Uses the browser-native WT dial (feat(transport,dmsg): browser-native WT dial for the std-Go wasm visor (build-tag fix) #3305).Counts distinct visors now (a peer may hold both a WS and a WT transport), and a peer with no WT record (404) just gets WS — graceful degradation until the fleet registers WT (needs #3302/#3303 deployed). Refreshes the committed wasm blob.
WT carrier build complete (across PRs)
#3302 AR cert-hash foundation → #3303 visor WT accept+register → #3304 native WT dial → #3305 browser-native WT dial (build tags) → this (wasm WS+WT multi-type autoconnect).
🤖 Generated with Claude Code