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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

Websocket with https site

I am using WebSocket for my application.

It is working fine when I run the server on IP address / HTTP URL

but now we set up our project on the HTTPS URL. Now WebSocket is not working.

What configurations I have to do (and in which file) to resolve this.

treprdp-apiwebsocketsrrto
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.

@bhargav.vaghasiya

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvote
Accepted
24.7k 54 17 14

Hello @bhargav.vaghasiya

The Elektron WebSocket API is based on the WebSocket standard specification. It supports both the standard WebSocket "ws" and WebSocket Secure "wss" protocols such as following:

  • basic connection: "ws://TREP:15000/WebSocket"
  • secure connection: "wss://your_TREP:443/WebSocket"
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.

Upvotes
22.1k 59 14 21

Hi @bhargav.vaghasiya,

Which endpoint are you connecting to - local ADS or ERT Cloud? Which application/sample are you using to get data?

ADS do not support secure socket out of the box, and you will have to install additional network components in front of ADS to take care of securing the channel.

Please see these additional questions in this regard:

https://community.developers.refinitiv.com/questions/22125/we-need-to-use-the-secure-protocol-only-does-elekt.html

https://developers.refinitiv.com/article/quick-steps-set-encrypted-connection-ads

The ERT Cloud infrastructure however, only delivers data on the secure sockets i.e. wss protocol.

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.