cmdRead now opens the file and reads incrementally, writing each chunk to stdout immediately. This fixes streaming for stream-mode files (chat, statewait, eventwait) which block per-Tread until data arrives. The previous io.ReadAll approach buffered internally and never flushed to stdout because stream files never return EOF. No separate 'tail' command needed — 'read' just works for both one-shot files (server returns data then EOF) and stream files (server blocks between chunks). |
||
|---|---|---|
| .. | ||
| main.go | ||