v1.1.0-fix_JS_version #2
@@ -263,7 +263,7 @@ const { smartpack, smartunpack, plikOneshotUpload, fetchWithBackoff } = msghandl
|
|||||||
// Data format: [[dataname, data, type], ...]
|
// Data format: [[dataname, data, type], ...]
|
||||||
const payload1 = ["test_message", "Hello World", "text"];
|
const payload1 = ["test_message", "Hello World", "text"];
|
||||||
const payload2 = ["config_data", { key: "value" }, "dictionary"];
|
const payload2 = ["config_data", { key: "value" }, "dictionary"];
|
||||||
const payload3 = ["table_data", [{id: 1, name: "Alice"}], "jsontable"];
|
const payload3 = ["table_data", [{id: 1, name: "Alice"}, {id: 2, name: "Ton"}], "jsontable"];
|
||||||
const file_data = fs.readFileSync('./test/large_image.png'); // Read image from file
|
const file_data = fs.readFileSync('./test/large_image.png'); // Read image from file
|
||||||
const payload4 = ["user_avatar", file_data, "binary"];
|
const payload4 = ["user_avatar", file_data, "binary"];
|
||||||
|
|
||||||
@@ -332,6 +332,7 @@ for (const [dataname, data, type] of envelope.payloads) {
|
|||||||
### Send Your First Message
|
### Send Your First Message
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
|
# Julia
|
||||||
using msghandler, NATS
|
using msghandler, NATS
|
||||||
|
|
||||||
# Data format: [(dataname, data, type), ...]
|
# Data format: [(dataname, data, type), ...]
|
||||||
@@ -361,6 +362,7 @@ reply = NATS.request(conn, "test.topic", envelope_json_str, timeout=10)
|
|||||||
### Receive Your First Message
|
### Receive Your First Message
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
|
# Julia
|
||||||
using msghandler, NATS
|
using msghandler, NATS
|
||||||
|
|
||||||
conn = NATS.connect("nats.yiem.cc")
|
conn = NATS.connect("nats.yiem.cc")
|
||||||
|
|||||||
Reference in New Issue
Block a user