From 0c18a2d2f1a77a6f4ccc79cf458750c099b0dc7b Mon Sep 17 00:00:00 2001 From: poiuty Date: Tue, 27 Jun 2023 15:02:37 +0300 Subject: [PATCH] update --- app/worker.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/worker.go b/app/worker.go index c493b0d..ecd8f6f 100644 --- a/app/worker.go +++ b/app/worker.go @@ -136,7 +136,7 @@ func getWS(workerData Info, key []byte) string { fmt.Println(err.Error()) return "" } - fmt.Println("send message!") + //fmt.Println("send message!") continue } @@ -249,6 +249,11 @@ func xWorker(workerData Info) { messageID := getMessageID(string(message)) + if messageID == 28 && strings.Contains(string(message), "offline") { + fmt.Println("offline:", workerData.room) + return + } + if messageID == 27 { input := struct { Value int64 `json:"value"`