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
+10
View File
@@ -0,0 +1,10 @@
package infra
// WSMessage es un mensaje tipado que viaja por WebSocket.
// El campo Type permite al receptor decidir como procesar el payload.
type WSMessage struct {
Type string `json:"type"`
Payload []byte `json:"payload"`
SenderID string `json:"sender_id"`
Ts int64 `json:"ts"`
}