Skip to content

Commit 028c1da

Browse files
committed
change logs:
1. Rebrand product and company 2. Update express version 3. Remove node_modules from repository, at last
1 parent fceceae commit 028c1da

10 files changed

Lines changed: 242 additions & 116 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
test.html
1+
test.html
2+
.vscode/
3+
node_modules/

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2017 Thomson Reuters
1+
Copyright 2017 Refinitiv
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Elektron WebSocket API with Web Workers Example
1+
# Refinitiv Real-time WebSocket API with Web Workers Example
22
## Overview
33

4-
[Elektron WebSocket API](https://developers.thomsonreuters.com/websocket-api) enables easy integration into a multitude of client technology environments such as scripting and web. This API runs directly on your TREP infrastructure or the Thomson Reuters platform and presents data in an open (JSON) readable format. The API supports all Thomson Reuters Elektron data models and can be integrated into multiple client technology standards e.g. Python, R, .Net etc.
4+
[Refinitiv Real-time WebSocket API](https://developers.refinitiv.com/elektron/websocket-api) (formerly known as Elektron WebSocket API) 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.
55

66
The web browsers JavaScript runtime is a single-threaded environment by default. However, the HTML standard lets developers implement multi threads JavaScript application in web browser by introducing the [Web Workers](https://html.spec.whatwg.org/multipage/workers.html) feature that lets web browsers run JavaScripts in a main thread and a background thread (workers thread).
77

8-
This example shows how to implement the Elektron WebSocket API with JavaScript web application with Web Workers. It allows the Web Workers thread to handle the connection logic with ADS WebSocket server while the main thread handles the UI interaction events and displaying data.
8+
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 ADS server while the main thread handles the UI interaction events and displaying data.
99

10-
There are two types of the 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 Elektron WebSocket API with JavaScript web browser application with Dedicated Workers.
10+
There are two types of the 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.
1111

12-
*Note: The initial release of this API is for deployed TREP customers only (i.e. to use it you will need an installed version of TREP 3.2).
12+
*Note: The initial release of this API is for deployed ADS customers only (i.e. to use it you will need an installed version of TREP 3.2.1 and above).
1313

1414
## Supported Web Browsers
1515
The example supports Chrome, Firefox and IE11 (based on the WebSocket and Web Workers browser supported platform).
@@ -34,32 +34,31 @@ The web application contains the following example files and folder:
3434
4. css/cover.css: The application CSS file
3535
5. libs/jquery-3.2.1.min.js: jQuery library file
3636
6. bootstrap/css, bootstarp/fonts and bootstrap/js folders: The folders for Bootstrap CSS and libraries files
37-
7. node_modules folder: Folder for Node.js and Express.js modules for web server running
38-
8. server.js: A simple web server application
39-
9. package.json: The Project npm dependencies file.
37+
7. server.js: A simple web server application
38+
8. package.json: The Project npm dependencies file.
4039

4140
## How to run this example
4241
1. Unzip or download the example project folder into a directory of your choice
4342
2. Run ```$> npm install``` in the command prompt to install all the dependencies required to run the sample in a subdirectory called *node_modules/*.
4443

45-
![npm command display](images/npm_install.png "npm command display")
44+
![npm command display](images/npm_install_2.png "npm command display")
4645

4746
3. If the machine is behind a proxy server, you need to configure Node.js uses proxy instead of a direct HTTP connection via the following command in command prompt: ```set https_proxy=http://<proxy.server>:<port>```
4847
4. Run ```$> node server.js``` in the command prompt to start the web server at HTTP port 8080
4948

50-
![application display](images/run_server.png "run server")
49+
![application display](images/run_server_2.png "run server")
5150

52-
5. Open web browser (IE11, Chorme and Firefox), then navigate to index.html of the web server at ```http://localhost:8080/index.html```
51+
5. Open web browser (IE11, Chrome and Firefox), then navigate to index.html of the web server at ```http://localhost:8080/index.html```
5352

54-
![application display](images/application_screen.png "application display")
53+
![application display](images/application_screen_2.png "application display")
5554

5655

5756
## References
5857
For further details, please check out the following resources:
59-
* [Thomson Reuters Elektron WebSocket API page](https://developers.thomsonreuters.com/websocket-api) on the [Thomson Reuters Developer Community](https://developers.thomsonreuters.com/) web site.
58+
* [Refinitiv Real-time WebSocket API page](https://developers.refinitiv.com/websocket-api) on the [Refinitiv Developer Community](https://developers.refinitiv.com/) web site.
6059
* [Developer Webinar Recording: Introduction to Electron Websocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw)
6160
* [Mozilla Developer Network: Web Workers API page](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
6261
* [Google HTML5 Rocks: The Basics of Web Workers page](https://www.html5rocks.com/en/tutorials/workers/basics/)
6362
* [Mozilla Developer Network: WebSocket API page](https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API)
6463

65-
For any question related to this article or Elektron WebSocket API page, please use the Developer Community [Q&A Forum](https://community.developers.thomsonreuters.com/).
64+
For any question related to this article or Refinitiv Real-time WebSocket API page, please use the Developer Community [Q&A Forum](https://community.developers.refinitiv.com/).

images/application_screen_2.png

34.7 KB
Loading

images/npm_install_2.png

8.09 KB
Loading

images/run_server_2.png

12.8 KB
Loading

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<body>
2828
<!-- WebSocket connection UI input form -->
2929
<div class="container-fluid">
30-
<h4>Thomson Reuters WebSocket API with Web Workers Example</h4>
30+
<h4>Refinitiv Real-time WebSocket API with Web Workers Example</h4>
3131
<form class="form-inline">
3232
<div class="form-group">
3333
<label for="txtServerurl">Server:</label> &nbsp; <input type="text" id="txtServerurl" placeholder="ADS IP:WebSocket Port" class="form-control">&nbsp;&nbsp;
@@ -44,7 +44,7 @@ <h4>Thomson Reuters WebSocket API with Web Workers Example</h4>
4444
<div class="form-group">
4545
<!--<label for="txtServiceName">Service Name:</label> &nbsp; <input type="text" id="txtServiceName" class="form-control"> &nbsp;&nbsp;-->
4646
<label for="txtItemName">Item Name:</label>&nbsp;
47-
<input type="text" id="txtItemName" value="" placeholder="TRI.N" class="form-control"> &nbsp;&nbsp;
47+
<input type="text" id="txtItemName" value="" placeholder="IBM.N" class="form-control"> &nbsp;&nbsp;
4848
<label for="txtServiceName">Service Name:</label> &nbsp; <input type="text" id="txtServiceName" class="form-control" placeholder="[Optional]"> &nbsp;&nbsp;
4949
<button id="btnSubscribe" type="button" class="btn btn-sm btn-primary">Subscribe</button> &nbsp;&nbsp;
5050
<button id="btnUnSubscribe" type="button" class="btn btn-sm btn-primary">Unsubscribe</button>

node_modules/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)