add hub event sending

This commit is contained in:
cos
2026-05-08 11:11:28 +02:00
parent 40acd753ac
commit 53652d1f79
7 changed files with 330 additions and 43 deletions
+6
View File
@@ -133,6 +133,12 @@ type WsEventMessage struct {
Event any `json:"event"`
}
type WsHubSpecificHubEventMessage struct {
Type WsEventType.WsEventType `json:"type"`
HubId uuid.UUID `json:"hubId"`
Event any `json:"event"`
}
type WsAuthMessage struct {
Success bool `json:"success"`
Error string `json:"error"`