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