func (s *_Service) listen(addr string) {
	//Create a new listener
	log.Info("service.listen", "starting the listner at "+addr)

	l, err := listener.New(addr)
	if err != nil {
		panic(err)
	}

	l.SetReadTimeout(120 * time.Second)

	// Configure the protos
	if s.config.GrpcListen != "" {
		grpcList, err := netListener(s.config.GrpcListen)
		if err != nil {
			return
		}
		s.grpc.Serve(grpcList)
	}
	l.ServeCallback(listener.MatchWS("GET"), s.http.Serve)
	l.ServeCallback(listener.MatchAny(), s.tcp.Serve)

	go l.Serve()
}
//listen configures main listerner on specefied address
listen configures main listerner on specefied address
// listen configures main listerner on specefied address
func (s *_Service) listen(addr string) {
	log.Info("service.listen", "starting the listner at "+addr)
	l, err := listener.New(addr)
	if err != nil {
		panic(err)
	}
	l.SetReadTimeout(120 * time.Second)
	if s.config.GrpcListen != "" {
		grpcList, err := netListener(s.config.GrpcListen)
		if err != nil {
			return
		}
		s.grpc.Serve(grpcList)
	}
	l.ServeCallback(listener.MatchWS("GET"), s.http.Serve)
	l.ServeCallback(listener.MatchAny(), s.tcp.Serve)
	go l.Serve()
}
func ( s * _Service ) listen ( addr string ) { log . Info ( " " , " " + addr ) l , err := listener . New ( addr ) if err != nil { panic ( err ) } l . SetReadTimeout ( 120 * time . Second ) if s . config . GrpcListen != " " { grpcList , err := netListener ( s . config . GrpcListen ) if err != nil { return } s . grpc . Serve ( grpcList ) } l . ServeCallback ( listener . MatchWS ( " " ) , s . http . Serve ) l . ServeCallback ( listener . MatchAny ( ) , s . tcp . Serve ) go l . Serve ( ) }
listen configures main listerner on specefied address
listen configures main listerner on specefied address
//Create a new listener // Configure the protos