diff --git a/wshandler/wshandler.go b/wshandler/wshandler.go index c51ebb4..58f54b8 100644 --- a/wshandler/wshandler.go +++ b/wshandler/wshandler.go @@ -32,11 +32,13 @@ type UpstreamMessage struct { Accid primitive.ObjectID Target string Body []byte + Tag []string } type DownstreamMessage struct { - Alias string - Body string + Alias string `json:",omitempty"` + Body string `json:",omitempty"` + Tag []string `json:",omitempty"` } type commandType string