diff --git a/ws/structs.go b/ws/structs.go index 0669da2..2bf768c 100644 --- a/ws/structs.go +++ b/ws/structs.go @@ -30,6 +30,10 @@ type User struct { Name string `json:"name"` } +type Destination struct { + Channel string `json:"channel"` +} + type GatewayMessageIn struct { MsgID string `json:"msg_id"` Server string `json:"server"` @@ -43,6 +47,7 @@ type GatewayMessageIn struct { type GatewayMessageOut struct { Type string `json:"type"` // "message" Payload GatewayMessageIn `json:"payload"` + Destination Destination `json:"destination"` ForwardedBy string `json:"forwarded_by"` // "ws"/"http" ForwardedAt time.Time `json:"forwarded_at"` }