(fix): wasm error
This commit is contained in:
parent
1efcb8837c
commit
8ae8377662
5 changed files with 28 additions and 19 deletions
|
|
@ -62,9 +62,7 @@ const client = await MTPClient.create({
|
|||
|
||||
client.subscribe("SomeType", (message) => console.log(message));
|
||||
|
||||
const clientId = client.credentials?.clientId == null
|
||||
? await client.register()
|
||||
: (await client.connect(), client.credentials.clientId);
|
||||
const clientId = await client.auth();
|
||||
|
||||
await client.send("SomeType", { value: "hello" });
|
||||
console.log("Connected MTP client", clientId, client.state);
|
||||
|
|
|
|||
Loading…
Reference in a new issue