This commit is contained in:
poiuty 2023-06-27 15:02:37 +03:00
parent c124de90e9
commit 0c18a2d2f1

View file

@ -136,7 +136,7 @@ func getWS(workerData Info, key []byte) string {
fmt.Println(err.Error()) fmt.Println(err.Error())
return "" return ""
} }
fmt.Println("send message!") //fmt.Println("send message!")
continue continue
} }
@ -249,6 +249,11 @@ func xWorker(workerData Info) {
messageID := getMessageID(string(message)) messageID := getMessageID(string(message))
if messageID == 28 && strings.Contains(string(message), "offline") {
fmt.Println("offline:", workerData.room)
return
}
if messageID == 27 { if messageID == 27 {
input := struct { input := struct {
Value int64 `json:"value"` Value int64 `json:"value"`