(path string, mt int, message []byte, exclude *websocket.Conn)
| 57 | } |
| 58 | |
| 59 | func SendToAllExclude(path string, mt int, message []byte, exclude *websocket.Conn) { |
| 60 | clientsMu.RLock() |
| 61 | defer clientsMu.RUnlock() |
| 62 | |
| 63 | for conn, client := range clients { |
| 64 | if client.Path == path && conn != exclude { |
| 65 | go safeWriteMessage(conn, mt, message) |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func SendToAll(path string, mt int, message []byte) { |
| 71 | clientsMu.RLock() |
no test coverage detected