This commit is contained in:
苏尹岚
2020-08-26 10:47:07 +08:00
parent d529f7d5b1
commit b560f8e4e2

View File

@@ -1,6 +1,7 @@
package controllers
import (
"fmt"
"log"
"net/http"
"time"
@@ -128,7 +129,7 @@ func (c *EventController) TestWebsocket() {
log.Fatal(err)
}
defer ws.Close()
fmt.Println("testrequest", utils.Format4Output(c.Ctx.Request, false))
//将当前客户端放入map中
clients[ws] = true