elexon-data / iris-clients

Clients for connecting to the Insights Real-time Information Service
MIT License
16 stars 7 forks source link

Pull dataset name from message subject instead of body #6

Closed BethThomas141 closed 1 year ago

BethThomas141 commented 1 year ago

Currently our clients pull the dataset from an IRIS message by inspecting the dataset field of the first element in what we assume to be an array. The dataset is now available in the message subject, which is a more reliable source.

This PR updates the example clients to read this message subject rather than the message content to find the dataset.