For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
33 9 13 31

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.

#technologywebsockets
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.