reid 2 lat temu
rodzic
commit
89f27dfbe0
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      ws/ws.go

+ 0 - 3
ws/ws.go

@@ -53,9 +53,6 @@ func WsHandler(w http.ResponseWriter, r *http.Request) {
 	// manage broadcasts and clients thru the broadcast package
 	// broadcast.RegisterClient(conn)
 	// defer broadcast.UnregisterClient(conn)
-	if !auth.WsAuthCheck(conn) {
-		unauthHandler(conn, r)
-	}
 	// keepalive for ws
 	conn.SetPongHandler(func(string) error {
 		conn.SetReadDeadline(time.Now().Add(60 * time.Second))