MessageReceiver signature 숮어

This commit is contained in:
2023-07-11 09:36:21 +09:00
parent a842845685
commit 3bb985d0b6
2 changed files with 43 additions and 29 deletions

View File

@ -62,10 +62,10 @@ func (r *room) loop(ctx context.Context, conns *map[string]*wsconn) (normalEnd b
return true
case conn := <-r.inChan:
(*conns)[conn.alias] = conn
(*conns)[conn.sender.Accid.Hex()] = conn
case conn := <-r.outChan:
delete((*conns), conn.alias)
delete((*conns), conn.sender.Accid.Hex())
case msg := <-r.messageChan:
for _, conn := range *conns {