diff --git a/wasm/docs.go b/wasm/docs.go index 9383c8a72b037679927a486836c67244c51c9e81..d26e5bdb5708562c8262ac9990edf7a9934ddc0a 100644 --- a/wasm/docs.go +++ b/wasm/docs.go @@ -11,6 +11,7 @@ package wasm import ( "github.com/spf13/jwalterweatherman" + "gitlab.com/elixxir/client/auth" "gitlab.com/elixxir/client/catalog" "gitlab.com/elixxir/client/channels" "gitlab.com/elixxir/client/cmix" @@ -60,4 +61,5 @@ var ( _ = jwalterweatherman.LogListener(nil) _ = format.Message{} _ = restlike.Message{} + _ = auth.Callbacks(nil) ) diff --git a/wasm/dummy.go b/wasm/dummy.go index f9e1d586c40fde3ddbd04407355f0636b8b2d707..933377138ea63b5222e30b10c3ef3e7a6db1dfbd 100644 --- a/wasm/dummy.go +++ b/wasm/dummy.go @@ -90,10 +90,10 @@ func (dt *DummyTraffic) SetStatus(_ js.Value, args []js.Value) interface{} { // GetStatus returns the current state of the [DummyTraffic] manager's sending // thread. Note that this function does not return the status set by the most -// recent call to [SetStatus]. Instead, this call returns the current status of -// the sending thread. This is due to the small delay that may occur between -// calling [SetStatus] and the sending thread taking into effect that status -// change. +// recent call to [DummyTraffic.SetStatus]. Instead, this call returns the +// current status of the sending thread. This is due to the small delay that may +// occur between calling [DummyTraffic.SetStatus] and the sending thread taking +// into effect that status change. // // Returns: // - Returns true if sending thread is sending dummy messages and false if diff --git a/wasm/e2eAuth.go b/wasm/e2eAuth.go index 391d348ebe2dd36bce7ed2c0041b2263b8b722e8..a2627800887ae25989c63d31e2b39efb7a973852 100644 --- a/wasm/e2eAuth.go +++ b/wasm/e2eAuth.go @@ -18,8 +18,8 @@ import ( // structure to the passed contact, as well as the passed facts (it will error // if they are too long). // -// The other party must accept the request by calling [Confirm] to be able to -// send messages using [E2e.SendE2E]. When the other party does so, the +// The other party must accept the request by calling [E2e.Confirm] to be able +// to send messages using [E2e.SendE2E]. When the other party does so, the // "confirm" callback will get called. // // The round the request is initially sent on will be returned, but the request @@ -69,7 +69,7 @@ func (e *E2e) Request(_ js.Value, args []js.Value) interface{} { // The confirmation sends as a critical message; if the round it sends on fails, // it will be auto resent by the cMix client. // -// If the confirmation must be resent, use [ReplayConfirm]. +// If the confirmation must be resent, use [E2e.ReplayConfirm]. // // Parameters: // - args[0] - Marshalled bytes of the partner [contact.Contact] (Uint8Array). diff --git a/wasm/follow.go b/wasm/follow.go index 27c9f90bca22ec998dca55531721cff16be83e5d..f794aa606d8396ced9ce570958c989c01aec75e8 100644 --- a/wasm/follow.go +++ b/wasm/follow.go @@ -135,9 +135,9 @@ func (c *Cmix) GetNodeRegistrationStatus(js.Value, []js.Value) interface{} { // HasRunningProcessies checks if any background threads are running and returns // true if one or more are. // -// This is meant to be used when [NetworkFollowerStatus] returns Stopping. Due -// to the handling of comms on iOS, where the OS can block indefinitely, it may -// not enter the stopped state appropriately. This can be used instead. +// This is meant to be used when [Cmix.NetworkFollowerStatus] returns Stopping. +// Due to the handling of comms on iOS, where the OS can block indefinitely, it +// may not enter the stopped state appropriately. This can be used instead. // // Returns: // - True if there are running processes (boolean). diff --git a/wasm/ud.go b/wasm/ud.go index ab90997be686172e3580722ca5355c4924595bd8..11cbbb1bdf8d0f3c521f66c3001953498e3b7f1d 100644 --- a/wasm/ud.go +++ b/wasm/ud.go @@ -198,9 +198,10 @@ func (ud *UserDiscovery) GetContact(js.Value, []js.Value) interface{} { return utils.CopyBytesToJS(c) } -// ConfirmFact confirms a fact first registered via [SendRegisterFact]. The -// confirmation ID comes from [SendRegisterFact] while the code will come over -// the associated communications system. +// ConfirmFact confirms a fact first registered via +// [UserDiscovery.SendRegisterFact]. The confirmation ID comes from +// [UserDiscovery.SendRegisterFact] while the code will come over the associated +// communications system. // // Parameters: // - args[0] - Confirmation ID (string).