Update: websocket 客户端

This commit is contained in:
2026-02-24 15:52:40 +08:00
parent e92361eb80
commit 325026fade
2 changed files with 51 additions and 3 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
package main
import (
"github.com/gorilla/websocket"
"log"
"net/http"
"github.com/gorilla/websocket"
)
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
@@ -48,4 +48,4 @@ func main() {
if err != nil {
log.Fatal("下回见伙计们", err)
}
}
}