Servers returns the list of known server urls, including additional servers discovered after a connection has been established. If authentication is enabled, use UserInfo or Token when connecting with these urls.
()
| 6227 | // authentication is enabled, use UserInfo or Token when connecting with |
| 6228 | // these urls. |
| 6229 | func (nc *Conn) Servers() []string { |
| 6230 | nc.mu.RLock() |
| 6231 | defer nc.mu.RUnlock() |
| 6232 | return nc.getServers(false) |
| 6233 | } |
| 6234 | |
| 6235 | // DiscoveredServers returns only the server urls that have been discovered |
| 6236 | // after a connection has been established. If authentication is enabled, |