pingHandler publishes the server's presence
()
| 295 | |
| 296 | // pingHandler publishes the server's presence |
| 297 | func (s *Server) pingHandler() { |
| 298 | if s.ari.Connected() { |
| 299 | s.announce() |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | // publish sends a message out over MessageBus, logging any error |
| 304 | func (s *Server) publish(subject string, msg *proxy.Response) { |