TLSRequired will return if the connected server requires TLS connections.
()
| 6319 | |
| 6320 | // TLSRequired will return if the connected server requires TLS connections. |
| 6321 | func (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. |