func newServer(conf iavp.Config, elems map[string]iavp.ElementFun, nid string, nrpc *proto.NatsRPC) *server {
	s := &server{
		config:  conf,
		clients: make(map[string]*sfu),
		nid:     nid,
		nrpc:    nrpc,
	}

	iavp.Init(elems)

	return s
}
// newServer creates a new avp server instance
newServer creates a new avp server instance
// newServer creates a new avp server instance
func newServer(conf iavp.Config, elems map[string]iavp.ElementFun, nid string, nrpc *proto.NatsRPC) *server {
	s := &server{
		config:  conf,
		clients: make(map[string]*sfu),
		nid:     nid,
		nrpc:    nrpc,
	}
	iavp.Init(elems)
	return s
}
func newServer ( conf iavp . Config , elems map [ string ] iavp . ElementFun , nid string , nrpc * proto . NatsRPC ) * server { s := & server { config : conf , clients : make ( map [ string ] * sfu ) , nid : nid , nrpc : nrpc , } iavp . Init ( elems ) return s }
newServer creates a new avp server instance
newServer creates a new avp server instance