DisconnectErrHandler will return the disconnect event handler.
()
| 1691 | |
| 1692 | // DisconnectErrHandler will return the disconnect event handler. |
| 1693 | func (nc *Conn) DisconnectErrHandler() ConnErrHandler { |
| 1694 | if nc == nil { |
| 1695 | return nil |
| 1696 | } |
| 1697 | nc.mu.Lock() |
| 1698 | defer nc.mu.Unlock() |
| 1699 | return nc.Opts.DisconnectedErrCB |
| 1700 | } |
| 1701 | |
| 1702 | // SetReconnectHandler will set the reconnect event handler. |
| 1703 | func (nc *Conn) SetReconnectHandler(rcb ConnHandler) { |
no outgoing calls