|
1 | | -# Refinitiv Real-time WebSocket API with Web Workers Example |
| 1 | +# Real-time WebSocket API with Web Workers Example |
2 | 2 |
|
3 | | -- Last update: Sep 2021 |
| 3 | +- Last update: Feb 2025 |
4 | 4 | - Environment: Any |
5 | 5 | - Compiler: JavaScript |
6 | 6 | - Prerequisite: Refinitiv Real-Time Advanced Data Hub and Refinitiv Real-Time Advanced Distribution servers version 3.2.1 and above |
7 | 7 |
|
8 | 8 | ## Overview |
9 | 9 |
|
10 | | -[Websocket API for Pricing Streaming and Real-Time Service](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api) aka Websocket API application enables easy integration into a multitude of client technology environments such as scripting and web. This API runs directly on your Refinitiv Real-Time infrastructure and presents data in an open (JSON) readable format. The API supports all Refinitiv Real-Time data models and can be integrated into multiple client technology standards e.g. Python, R, .Net, etc. |
| 10 | +[Websocket API for Pricing Streaming and Real-Time Service](https://developers.lseg.com/en/api-catalog/real-time-opnsrc/websocket-api) aka Websocket API application enables easy integration into a multitude of client technology environments such as scripting and web. This API runs directly on your Refinitiv Real-Time infrastructure and presents data in an open (JSON) readable format. The API supports all Refinitiv Real-Time data models and can be integrated into multiple client technology standards e.g. Python, R, .Net, etc. |
11 | 11 |
|
12 | 12 | The web browser's JavaScript runtime is a single-threaded environment by default. However, the HTML standard lets developers implement multi-threads JavaScript application in the web browser by introducing the [Web Workers](https://html.spec.whatwg.org/multipage/workers.html) feature that lets web browsers run JavaScripts in the main thread and a background thread (workers thread). |
13 | 13 |
|
14 | | -This example shows how to implement the Refinitiv Real-time WebSocket API with JavaScript web application with Web Workers. It allows the Web Workers thread to handle the connection logic with eal-Time Advanced Distribution server while the main thread handles the UI interaction events and displaying data. |
| 14 | +This example shows how to implement the Real-time WebSocket API with JavaScript web application with Web Workers. It allows the Web Workers thread to handle the connection logic with eal-Time Advanced Distribution server while the main thread handles the UI interaction events and displaying data. |
15 | 15 |
|
16 | | -There are two types of Web Workers, [Dedicated Workers](https://html.spec.whatwg.org/multipage/workers.html#dedicated-workers-and-the-worker-interface) and [Shared Workers](https://html.spec.whatwg.org/multipage/workers.html#sharedworker). This example covers only how to implement the Refinitiv Real-time WebSocket API with JavaScript web browser application with Dedicated Workers. |
| 16 | +There are two types of Web Workers, [Dedicated Workers](https://html.spec.whatwg.org/multipage/workers.html#dedicated-workers-and-the-worker-interface) and [Shared Workers](https://html.spec.whatwg.org/multipage/workers.html#sharedworker). This example covers only how to implement the Real-time WebSocket API with JavaScript web browser application with Dedicated Workers. |
17 | 17 |
|
18 | | -*Note: The initial release of this API is for deployed Refinitiv Real-Time Advanced Distribution Server customers only (i.e. to use it you will need an installed version of Refinitiv Real-Time Advanced Distribution Server 3.2.1 and above). |
19 | 18 |
|
20 | 19 | ## Supported Web Browsers |
21 | 20 | The example supports Chrome/Microsoft Edge (Chrome-based version), Firefox, and IE11 (based on the WebSocket and Web Workers browser supported platform). |
@@ -62,12 +61,12 @@ The web application contains the following example files and folder: |
62 | 61 | ## References |
63 | 62 |
|
64 | 63 | For further details, please check out the following resources: |
65 | | -* [Refinitiv Real-Time & Distribution Family page](https://developers.refinitiv.com/en/use-cases-catalog/refinitiv-real-time) on the [Refinitiv Developer Community](https://developers.refinitiv.com/) web site. |
66 | | -* [WebSocket API page](https://developers.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/refinitiv-websocket-api). |
| 64 | +* [LSEG Real-Time products page](https://developers.lseg.com/en/use-cases-catalog/real-time) on the [LSEG Developer Community](https://developers.lseg.com/) web site. |
| 65 | +* [WebSocket API page](https://developers.lseg.com/en/api-catalog/real-time-opnsrc/websocket-api). |
67 | 66 | * [Developer Webinar Recording: Introduction to Electron Websocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw) |
68 | 67 | * [Mozilla Developer Network: Web Workers API page](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API). |
69 | 68 | * [Google HTML5 Rocks: The Basics of Web Workers page](https://www.html5rocks.com/en/tutorials/workers/basics/) |
70 | 69 | * [Mozilla Developer Network: WebSocket API page](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API) |
71 | 70 |
|
72 | | -For any questions related to this article or the WebSocket API page, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/spaces/152/websocket-api.html). |
| 71 | +For any questions related to this article or the WebSocket API page, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/). |
73 | 72 |
|
0 commit comments