feat: tipos WSHub, WSClient, WSMessage, SSEEvent (issue 0011 fase 1)

This commit is contained in:
2026-04-18 17:10:28 +02:00
parent 95826cb14f
commit 0255207514
10 changed files with 263 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package infra
// SSEEvent es un evento Server-Sent Events segun la spec W3C.
// Campos opcionales: si Event esta vacio se envia solo data,
// si ID esta vacio no se incluye campo id, Retry en ms (0 = omitir).
type SSEEvent struct {
Event string `json:"event"`
Data string `json:"data"`
ID string `json:"id"`
Retry int `json:"retry"`
}