txlyre 1 tháng trước cách đây
mục cha
commit
47135239ec
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      main.go

+ 3 - 0
main.go

@@ -7,6 +7,7 @@ import (
 	"net/http"
 	"os"
 	"os/signal"
+	"time"
 
 	"golang.org/x/crypto/blake2b"
 
@@ -23,6 +24,8 @@ func sender(queue chan []byte, secret string) {
 	h.Set("X-Secret", secret)
 
 	for {
+		time.Sleep(3 * time.Second)
+
 		ws, _, err := websocket.DefaultDialer.Dial("wss://yebi.su/ws", h)
 		if err != nil {
 			log.Println("dial error")