SendAll sends a message to all connected clients. Used by the output component to broadcast the message to the clients
(msg []string)
| 49 | // SendAll sends a message to all connected clients. Used by the output component to broadcast |
| 50 | // the message to the clients |
| 51 | func (s *Server) SendAll(msg []string) { |
| 52 | s.sendAllCh <- msg |
| 53 | } |
| 54 | |
| 55 | func (s *Server) err(err error) { |
| 56 | s.errCh <- err |