func acceptWebsocketWithTLS(server *Server, lis net.Listener) {
	var (
		conn net.Conn
		err  error
		r    int
	)
	for {
		if conn, err = lis.Accept(); err != nil {
			// if listener close then return
			log.Errorf("listener.Accept(\"%s\") error(%v)", lis.Addr().String(), err)
			return
		}
		go serveWebsocket(server, conn, r)
		if r++; r == maxInt {
			r = 0
		}
	}
}
// Accept accepts connections on the listener and serves requests
// for each incoming connection.  Accept blocks; the caller typically
// invokes it in a go statement.
Accept accepts connections on the listener and serves requests
for each incoming connection.  Accept blocks; the caller typically
invokes it in a go statement.
// Accept accepts connections on the listener and serves requests // for each incoming connection . Accept blocks ; the caller typically // invokes it in a go statement .
func acceptWebsocketWithTLS(server *Server, lis net.Listener) {
	var (
		conn net.Conn
		err  error
		r    int
	)
	for {
		if conn, err = lis.Accept(); err != nil {
			log.Errorf("listener.Accept(\"%s\") error(%v)", lis.Addr().String(), err)
			return
		}
		go serveWebsocket(server, conn, r)
		if r++; r == maxInt {
			r = 0
		}
	}
}
func acceptWebsocketWithTLS ( server * Server , lis net . Listener ) { var ( conn net . Conn err error r int ) for { if conn , err = lis . Accept ( ) ; err != nil { log . Errorf ( " \" \" " , lis . Addr ( ) . String ( ) , err ) return } go serveWebsocket ( server , conn , r ) if r ++ ; r == maxInt { r = 0 } } }
Accept accepts connections on the listener and serves requests
for each incoming connection.
Accept accepts connections on the listener and serves requests for each incoming connection .
// if listener close then return