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