ADORSYS-GIS / ADORSYS-GIS/wazuh-agent-status

Websocket communication

Aberta
#57 34 comentários 0 reações 2 responsáveis Reivindicada por @ArmandMeppa Ver no GitHub
enhancement SIEM
Linguagem predominante
Rust
Estrelas
3
Forks
3
Merge médio
13h 8min
PRs com merge (30d)
18

Descrição

### **Description**

Replace the current **TCP polling mechanism** with **WebSocket communication** in `wazuh-agent-status`.
The goal is to establish a persistent connection between the client and server so that the client receives **real-time agent status updates** without polling.

Key tasks:

* Add WebSocket server support in the background process (`server` binary).
* Update client to subscribe to server via WebSocket.

---

### **Definition of Ready**

* [x] Codebase is cloned and dependencies resolved.
* [x] Current TCP polling implementation is understood.

---

### **Acceptance Criteria**

* [x] Client establishes persistent WebSocket connection to server.
* [ ] Server broadcasts agent status changes to all connected clients.
* [x] Client updates tray icon / CLI immediately upon receiving status update.

---

### **Definition of Done**

* [x] WebSocket server implemented in `server` binary.
* [x] Client binary consumes WebSocket messages instead of polling.
* [x] Unit and integration tests created for WebSocket communication.
* [ ] Documentation updated (README, developer guide) with new WebSocket design and configuration (`--use-websocket` flag).
* [ ] Manual test verified: stopping/starting Wazuh agent triggers immediate tray client update without polling.

---

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.