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

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