ProxyPath is an option for websocket connections that adds a path to connections url. This is useful when connecting to NATS behind a proxy.
(path string)
| 1561 | // ProxyPath is an option for websocket connections that adds a path to connections url. |
| 1562 | // This is useful when connecting to NATS behind a proxy. |
| 1563 | func ProxyPath(path string) Option { |
| 1564 | return func(o *Options) error { |
| 1565 | o.ProxyPath = path |
| 1566 | return nil |
| 1567 | } |
| 1568 | } |
| 1569 | |
| 1570 | // CustomInboxPrefix configures the request + reply inbox prefix |
| 1571 | func CustomInboxPrefix(p string) Option { |
no outgoing calls