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

Method TLSRequired

nats.go:6321–6325  ·  view source on GitHub ↗

TLSRequired will return if the connected server requires TLS connections.

()

Source from the content-addressed store, hash-verified

6319
6320// TLSRequired will return if the connected server requires TLS connections.
6321func (nc *Conn) TLSRequired() bool {
6322 nc.mu.RLock()
6323 defer nc.mu.RUnlock()
6324 return nc.info.TLSRequired
6325}
6326
6327// Barrier schedules the given function `f` to all registered asynchronous
6328// subscriptions.

Callers 1

TestBarrierFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestBarrierFunction · 0.64