From 0fa6eaf95bf041e8eaea05bc96443e109fa203a7 Mon Sep 17 00:00:00 2001 From: narawat Date: Mon, 23 Feb 2026 21:37:50 +0700 Subject: [PATCH] update --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ddf7fa..b250198 100644 --- a/README.md +++ b/README.md @@ -465,7 +465,7 @@ smartsend("/topic", data) ```javascript await smartsend("/topic", [ { dataname: "message", data: "Hello", type: "text" } -], { isPublish: false }); +]); ``` #### Julia @@ -488,7 +488,7 @@ smartsend("/topic", data, fileserver_url="http://localhost:8080") ```javascript await smartsend("/topic", [ { dataname: "file", data: largeData, type: "binary" } -], { fileserverUrl: "http://localhost:8080", isPublish: false }); +], { fileserverUrl: "http://localhost:8080" }); ``` #### Julia @@ -694,7 +694,7 @@ asyncio.run(main()) ```javascript const { smartsend } = require('./src/NATSBridge'); -await smartsend("/device/command", [ +const { env, msg_json_str } = await smartsend("/device/command", [ { dataname: "command", data: { action: "read_sensor" }, type: "dictionary" } ], { replyTo: "/device/response" @@ -736,7 +736,7 @@ main(); ```julia using NATSBridge -env = NATSBridge.smartsend( +env, msg_json_str = NATSBridge.smartsend( "/device/command", [("command", Dict("action" => "read_sensor"), "dictionary")]; reply_to="/device/response"