How to pass referenceCurrencyUuid to real-time web socket?

Hello,

I am trying to make a web socket connection in a javascript environment.

I want to know, How or where can I use the referenceCurrencyUuid parameter in the request?

My current code is like below.

new WebSocket(`wss://api.coinranking.com/v2/real-time/rates?x-access-token=${Config.API_KEY}&referenceCurrencyUuid=${selectedCurrency}`)

Here selectedCurrency is uuid of currency in which I want to receive an update.

I also tried this.

ws.onopen = () => {
      const subscriptions = {
        throttle: '10s',
        referenceCurrencyUuid: selectedCurrency,
        uuids: [
          coin.uuid
        ],
      };

but this did not work either.

Thanks for your help in advance.

Regards,
Sandesh

Thanks for the question. It has been answered by one of my colleagues via private message.