go version 1.20 올림
This commit is contained in:
@ -76,9 +76,7 @@ func (r *room) loop(ctx context.Context, conns *map[string]*wsconn) (normalEnd b
|
||||
bt, _ := json.Marshal(ds)
|
||||
|
||||
for _, conn := range *conns {
|
||||
writer, _ := conn.NextWriter(websocket.TextMessage)
|
||||
writer.Write(bt)
|
||||
writer.Close()
|
||||
conn.Conn.WriteMessage(websocket.TextMessage, bt)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user