WithPath sets the socket path. If not provided or empty, the client will auto-discover the default socket path.
(path string)
| 22 | // WithPath sets the socket path. If not provided or empty, the client will |
| 23 | // auto-discover the default socket path. |
| 24 | func WithPath(path string) Option { |
| 25 | return func(opts *options) { |
| 26 | if path == "" { |
| 27 | return |
| 28 | } |
| 29 | opts.path = path |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // Client provides a client for communicating with the workspace agentsocket API. |
| 34 | type Client struct { |
no outgoing calls