func NewNatsSenderClient(natsURL string) (*EventClient, error) {
	eClient, pEvent, err := newNATSSender(natsURL)
	if err != nil {
		return nil, fmt.Errorf("failed to subscribe to events: %v", err)
	}

	return &EventClient{
		ceClient:     eClient,
		cenatsSender: pEvent,
	}, nil
}
// NewNatsSenderClient creates a cloudevent client for sending MMS events to NATS.
NewNatsSenderClient creates a cloudevent client for sending MMS events to NATS.
// NewNatsSenderClient creates a cloudevent client for sending MMS events to NATS .
func NewNatsSenderClient(natsURL string) (*EventClient, error) {
	eClient, pEvent, err := newNATSSender(natsURL)
	if err != nil {
		return nil, fmt.Errorf("failed to subscribe to events: %v", err)
	}
	return &EventClient{
		ceClient:     eClient,
		cenatsSender: pEvent,
	}, nil
}
func NewNatsSenderClient ( natsURL string ) ( * EventClient , error ) { eClient , pEvent , err := newNATSSender ( natsURL ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return & EventClient { ceClient : eClient , cenatsSender : pEvent , } , nil }
NewNatsSenderClient creates a cloudevent client for sending MMS events to NATS.
NewNatsSenderClient creates a cloudevent client for sending MMS events to NATS .