opencode
opencode copied to clipboard
feat(server): add unix domain socket support
- Add --unix option to serve and tui commands
- Update Server.listen() to accept unix socket path
- Unix socket overrides port/hostname when specified
- Enables parallel testing with isolated instances
Fixes issue where multiple opencode instances needed unique socket addresses for parallel testing. Unix sockets provide deterministic addresses without port conflicts. Addresses: https://github.com/sst/opencode/issues/2119
Is it possible to use this socket to stream to a client in real time the text being generated in the opencode in real time?
Is it possible to use this socket to stream to a client in real time the text being generated in the opencode in real time?
yes, however this is also possible with SSE & the current client server arch that opencode has