func newSFU(addr string, config iavp.Config, nid string, nrpc *proto.NatsRPC) (*sfu, error) {
	log.Infof("connecting to sfu: %s", addr)

	ctx, cancel := context.WithCancel(context.Background())
	return &sfu{
		ctx:        ctx,
		cancel:     cancel,
		addr:       addr,
		config:     config,
		transports: make(map[proto.SID]*iavp.WebRTCTransport),
		nid:        nid,
		nrpc:       nrpc,
	}, nil
}
// newSFU intializes a new SFU client
newSFU intializes a new SFU client
// newSFU intializes a new SFU client
func newSFU(addr string, config iavp.Config, nid string, nrpc *proto.NatsRPC) (*sfu, error) {
	log.Infof("connecting to sfu: %s", addr)
	ctx, cancel := context.WithCancel(context.Background())
	return &sfu{
		ctx:        ctx,
		cancel:     cancel,
		addr:       addr,
		config:     config,
		transports: make(map[proto.SID]*iavp.WebRTCTransport),
		nid:        nid,
		nrpc:       nrpc,
	}, nil
}
func newSFU ( addr string , config iavp . Config , nid string , nrpc * proto . NatsRPC ) ( * sfu , error ) { log . Infof ( " " , addr ) ctx , cancel := context . WithCancel ( context . Background ( ) ) return & sfu { ctx : ctx , cancel : cancel , addr : addr , config : config , transports : make ( map [ proto . SID ] * iavp . WebRTCTransport ) , nid : nid , nrpc : nrpc , } , nil }
newSFU intializes a new SFU client
newSFU intializes a new SFU client