You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
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).
7
7
8
-
This example shows how to implement the Elektron WebSocket API with JavaScript web application with Web Workers. It lets the Web Workers thread handles a connection logic with ADS WebSocket while the main thread handles the UI interaction events and displaying data.
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.
9
9
10
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.
11
11
@@ -18,7 +18,7 @@ The example supports Chrome, Firefox and IE11 (based on the WebSocket and Web Wo
18
18
This example requires the following dependencies softwares.
19
19
1.[Node.js](https://nodejs.org/en/) - version 6.10 or higher.
20
20
2.[npm](https://www.npmjs.com/) package manager (included in Node.js)
21
-
3.[Express.js](https://expressjs.com/) framework
21
+
3.[Express.js](https://expressjs.com/) framework (will be installed via ```npm install``` command)
22
22
23
23
This example also uses the following 3rd party libraries for UI presentation.
24
24
1.[jQuery 3.2.1](https://jquery.com/)
@@ -35,7 +35,7 @@ The web application contains the following example files and folder:
35
35
5. libs/jquery-3.2.1.min.js: jQuery library file
36
36
6. bootstrap/css, bootstarp/fonts and bootstrap/js folders: The folders for Bootstrap CSS and libraries files
37
37
7. node_modules folder: Folder for Node.js and Express.js modules for web server running
38
-
8. server.js: A web server application
38
+
8. server.js: A simple web server application
39
39
9. package.json: The Project npm dependencies file.
40
40
41
41
## How to run this example
@@ -57,6 +57,7 @@ The web application contains the following example files and folder:
57
57
## References
58
58
For further details, please check out the following resources:
59
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.
60
+
*[Developer Webinar Recording: Introduction to Electron Websocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw)
60
61
*[Mozilla Developer Network: Web Workers API page](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
61
62
*[Google HTML5 Rocks: The Basics of Web Workers page](https://www.html5rocks.com/en/tutorials/workers/basics/)
0 commit comments