<commit_before># Lightstreamer JMS Extender - Basic Stock-List Demo - HTML Client

<!-- START DESCRIPTION lightstreamer-jms-example-stocklist-client-javascript -->

This project contains a sample Web application that shows how the [_Lightstreamer JMS Extender JavaScript Client Library_](https://www.npmjs.com/package/lightstreamer-jms-web-client) can be used to connect to Lightstreamer JMS Extender.

![Screenshot](screen-large.png)

## Details

This demo displays real-time market data for 30 stocks, generated by the feed simulator included in the [Stock-List Demo Java Service](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java). For simplicity, a single JMS topic is used for all stocks, while in a real scenario you would probably use a different JMS topic for each stock.

Check out the sources for further explanations.

<!-- END DESCRIPTION lightstreamer-jms-example-stocklist-client-javascript -->

## Install

Before you can run the demo of this project, some dependencies need to be solved:

* Note that, as prerequisite, the [Lightstreamer JMS Extender - Stock-List Demo - Java (JMS) Service](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java) has to be deployed on your local Lightstreamer JMS Extender instance. Please check out that project and follow the installation instructions provided with it.
* Launch Lightstreamer JMS Extender.
* jQuery is currently hot-linked in the html page: you may want to replace it with a local version and/or to upgrade its version.
* [Lightstreamer visual widgets](https://demos.lightstreamer.com/commons/lightstreamer-widgets.js), such as  _Status Widget_ and _Dynagrid_, are hot-linked in the html page: they are in no way mandatory and you may replace them with widgets from any other library by modifying `grid.js` and the `onLSClient` event in `index.html`.
* As the latest version of the Lightstreamer JMS Extender JavaScript library is always available through [unpkg](https://unpkg.com/lightstreamer-jms-web-client), it is hot-linked in the html page.

Now, you need to configure the `src/js/app.js` of this example by specifying the name of the JMS connector you are going to use. By default, the demo will look for the **ActiveMQ** JMS connector, please refer to the related [Service project](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java) for more details on the choice of a JMS broker to be used.

To set the JMS connector name and the connection name, look where the connection is created:<commit_msg>Improve the introduction<commit_after># Lightstreamer JMS Extender - Basic Stock-List Demo - HTML Client

<!-- START DESCRIPTION lightstreamer-jms-example-stocklist-client-javascript -->

This project contains a sample Web application that shows how the [_Lightstreamer JMS Extender JavaScript Client Library_](https://www.npmjs.com/package/lightstreamer-jms-web-client) can be used to connect to Lightstreamer JMS Extender.  
This projects is the JMS Extender version of the [Lightstreamer - Basic Stock-List Demo - HTML Client](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-javascript).


![Screenshot](screen-large.png)

## Details

This demo displays real-time market data for 30 stocks, generated by the feed simulator included in the [Stock-List Demo Java Service](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java). For simplicity, a single JMS topic is used for all stocks, while in a real scenario you would probably use a different JMS topic for each stock.

Check out the sources for further explanations.

<!-- END DESCRIPTION lightstreamer-jms-example-stocklist-client-javascript -->

## Install

Before you can run the demo of this project, some dependencies need to be solved:

* Note that, as prerequisite, the [Lightstreamer JMS Extender - Stock-List Demo - Java (JMS) Service](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java) has to be deployed on your local Lightstreamer JMS Extender instance. Please check out that project and follow the installation instructions provided with it.
* Launch Lightstreamer JMS Extender.
* jQuery is currently hot-linked in the html page: you may want to replace it with a local version and/or to upgrade its version.
* [Lightstreamer visual widgets](https://demos.lightstreamer.com/commons/lightstreamer-widgets.js), such as  _Status Widget_ and _Dynagrid_, are hot-linked in the html page: they are in no way mandatory and you may replace them with widgets from any other library by modifying `grid.js` and the `onLSClient` event in `index.html`.
* As the latest version of the Lightstreamer JMS Extender JavaScript library is always available through [unpkg](https://unpkg.com/lightstreamer-jms-web-client), it is hot-linked in the html page.

Now, you need to configure the `src/js/app.js` of this example by specifying the name of the JMS connector you are going to use. By default, the demo will look for the **ActiveMQ** JMS connector, please refer to the related [Service project](https://github.com/Lightstreamer/Lightstreamer-JMS-example-StockList-service-java) for more details on the choice of a JMS broker to be used.

To set the JMS connector name and the connection name, look where the connection is created:
{'fraction_non_alphanumeric': 0.0738657667791526, 'fraction_numerical': 0.0007499062617172854, 'mean_word_length': 4.798913043478261, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 13, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2291289', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1396, 'n_words': 640}