update readme

This commit is contained in:
2026-05-23 10:57:01 +07:00
parent 31727f3337
commit 15a7f1c178
3 changed files with 12 additions and 9 deletions

View File

@@ -107,11 +107,14 @@ msghandler enables seamless communication across multiple platforms through NATS
#### Julia
```julia
using msghandler
using msghandler, NATS
data = [("message", "Hello World", "text")]
env, env_json_str = smartpack("/chat/room1", data; broker_url="nats://localhost:4222")
println("Message sent!")
conn = NATS.connect(broker_url) # Create NATS connection
NATS.publish(conn, subject, message) # Publish message to NATS
NATS.drain(conn)
```
#### JavaScript (Node.js)