From 74829b93ac1b3e3ea4a51fbc5113800ad57006fc Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 11 Jul 2023 15:26:13 +0900 Subject: [PATCH] =?UTF-8?q?tag=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wshandler/room.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wshandler/room.go b/wshandler/room.go index c04a946..762e165 100644 --- a/wshandler/room.go +++ b/wshandler/room.go @@ -55,6 +55,7 @@ func (r *room) loop(ctx context.Context, conns *map[string]*wsconn) (normalEnd b } }() + tag := "#" + r.name for { select { case <-ctx.Done(): @@ -70,7 +71,7 @@ func (r *room) loop(ctx context.Context, conns *map[string]*wsconn) (normalEnd b ds := DownstreamMessage{ Alias: msg.Alias, Body: msg.Body, - Tag: append(msg.Tag, r.name), + Tag: append(msg.Tag, tag), } bt, _ := json.Marshal(ds)