Can we specify the "service" to connect in the websocket API?

Can we specify the "service" to connect in the websocket API:

{ "ID":2, "Key":{ "Name":"TRI.N" } }
e.g., there are 2 services, ELEKTRON_DD, and NI_PUB, I would like to just fetch the RIC posted on NI_PUB

Not sure if we may post the RIC with same names (e.g., TRI.N) on different services.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Frederic

    Thanks for reaching out to us.

    Yes, you can specify the service in the key attribute. For example:

    {
        "ID": 5,
        "Key": {
            "Name": "TEST",
            "Service": "NI_PUB"
        }
    }

    I hope that this information is of help.