MCPcopy
hub / github.com/nats-io/nats.go / ProxyPath

Function ProxyPath

nats.go:1563–1568  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1563func 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
1571func CustomInboxPrefix(p string) Option {

Callers 1

TestWSProxyPathFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWSProxyPathFunction · 0.68