Skip to content

Commit

Permalink
websocket 启动时,控制台提示。
Browse files Browse the repository at this point in the history
  • Loading branch information
valiner committed Mar 28, 2024
1 parent e88a6a5 commit a14c19e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion znet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ func (s *Server) ListenTcpConn() {
}

func (s *Server) ListenWebsocketConn() {

zlog.Ins().InfoF("[START] WEBSOCKET Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.WsPort)

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// 1. Check if the server has reached the maximum allowed number of connections
// (设置服务器最大连接控制,如果超过最大连接,则等待)
Expand Down

0 comments on commit a14c19e

Please sign in to comment.