From d99dc41be94c02663d32f577339e379893094219 Mon Sep 17 00:00:00 2001 From: narawat Date: Mon, 23 Feb 2026 21:09:36 +0700 Subject: [PATCH] update --- examples/walkthrough.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/walkthrough.md b/examples/walkthrough.md index 304b88f..5bcb566 100644 --- a/examples/walkthrough.md +++ b/examples/walkthrough.md @@ -132,7 +132,7 @@ class ChatUI { }); } - await smartsend( + const { env, msg_json_str } = await smartsend( `/chat/${this.currentRoom}`, data, { @@ -304,7 +304,7 @@ class FileUploadService { type: 'binary' }]; - const envelope = await smartsend( + const { env, msg_json_str } = await smartsend( `/files/${recipient}`, data, { @@ -314,7 +314,7 @@ class FileUploadService { } ); - return envelope; + return env; } async uploadLargeFile(filePath, recipient) { @@ -833,7 +833,7 @@ class DashboardUI { async refreshData() { // Request fresh data - await smartsend("/dashboard/request", [ + const { env, msg_json_str } = await smartsend("/dashboard/request", [ { dataname: "request", data: { type: "refresh" }, type: "dictionary" } ], { fileserverUrl: window.config.fileserver_url