update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user