feat(wasm): set transport identity to node identity and initialize path request handler
All checks were successful
Bearer / scan (pull_request) Successful in 9s
Go Build Multi-Platform / build (arm, windows) (pull_request) Successful in 42s
Go Build Multi-Platform / build (arm64, darwin) (pull_request) Successful in 45s
Go Build Multi-Platform / build (arm64, freebsd) (pull_request) Successful in 45s
Go Build Multi-Platform / build (arm64, linux) (pull_request) Successful in 45s
Go Build Multi-Platform / build (wasm, js) (pull_request) Successful in 54s
Go Build Multi-Platform / build (arm64, windows) (pull_request) Successful in 1m0s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (pull_request) Successful in 1m12s
Go Revive Lint / lint (pull_request) Successful in 47s
Run Gosec / tests (pull_request) Successful in 1m24s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (pull_request) Successful in 2m26s
Go Build Multi-Platform / build (amd64, darwin) (pull_request) Successful in 9m30s
Go Build Multi-Platform / build (amd64, freebsd) (pull_request) Successful in 9m28s
Go Build Multi-Platform / build (amd64, linux) (pull_request) Successful in 9m30s
Go Build Multi-Platform / build (arm, freebsd) (pull_request) Successful in 9m27s
Go Build Multi-Platform / build (amd64, windows) (pull_request) Successful in 9m29s
Go Build Multi-Platform / build (arm, linux) (pull_request) Successful in 9m28s
Go Build Multi-Platform / Create Release (pull_request) Has been skipped
All checks were successful
Bearer / scan (pull_request) Successful in 9s
Go Build Multi-Platform / build (arm, windows) (pull_request) Successful in 42s
Go Build Multi-Platform / build (arm64, darwin) (pull_request) Successful in 45s
Go Build Multi-Platform / build (arm64, freebsd) (pull_request) Successful in 45s
Go Build Multi-Platform / build (arm64, linux) (pull_request) Successful in 45s
Go Build Multi-Platform / build (wasm, js) (pull_request) Successful in 54s
Go Build Multi-Platform / build (arm64, windows) (pull_request) Successful in 1m0s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (pull_request) Successful in 1m12s
Go Revive Lint / lint (pull_request) Successful in 47s
Run Gosec / tests (pull_request) Successful in 1m24s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (pull_request) Successful in 2m26s
Go Build Multi-Platform / build (amd64, darwin) (pull_request) Successful in 9m30s
Go Build Multi-Platform / build (amd64, freebsd) (pull_request) Successful in 9m28s
Go Build Multi-Platform / build (amd64, linux) (pull_request) Successful in 9m30s
Go Build Multi-Platform / build (arm, freebsd) (pull_request) Successful in 9m27s
Go Build Multi-Platform / build (amd64, windows) (pull_request) Successful in 9m29s
Go Build Multi-Platform / build (arm, linux) (pull_request) Successful in 9m28s
Go Build Multi-Platform / Create Release (pull_request) Has been skipped
This commit is contained in:
@@ -155,6 +155,12 @@ func InitReticulum(this js.Value, args []js.Value) interface{} {
|
||||
cfg := common.DefaultConfig()
|
||||
t := transport.NewTransport(cfg)
|
||||
|
||||
// Set transport identity to the same as the node identity for now in WASM
|
||||
t.SetIdentity(id)
|
||||
if err := t.InitializePathRequestHandler(); err != nil {
|
||||
debug.Log(debug.DEBUG_ERROR, "Failed to initialize path request handler", "error", err)
|
||||
}
|
||||
|
||||
dest, err := destination.New(
|
||||
id,
|
||||
destination.IN,
|
||||
|
||||
Reference in New Issue
Block a user