fix(client-python): CLI batch reuses one loop/channel; smoke attaches stream before advise (CPY-005, CPY-006, #257)
This commit is contained in:
@@ -498,8 +498,15 @@ mxgw-py write --session-id <id> --server-handle 1 --item-handle 2 --type int32 -
|
||||
```
|
||||
|
||||
Use `--api-key` or `--api-key-env MXGATEWAY_API_KEY` to attach API key
|
||||
metadata. `smoke` opens a session, registers, adds an item, advises, streams a
|
||||
bounded event count, and closes the session in a `finally` block.
|
||||
metadata. `smoke` opens a session, registers, adds an item, attaches the event
|
||||
stream, advises, collects a bounded event count, and closes the session in a
|
||||
`finally` block. It attaches the stream before advising (and, when the gateway
|
||||
lists `stream-events-attached-ack`, waits for the attach acknowledgement) so the
|
||||
initial value cannot be published before the subscriber registers.
|
||||
|
||||
`batch` reads one command per stdin line and runs them all on a single event loop,
|
||||
reusing one client (one channel, one TLS certificate probe) per distinct
|
||||
connection until stdin ends; it closes them once at the end.
|
||||
|
||||
Use TLS options for a secured gateway:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user