<commit_before># Lightstreamer - Round-Trip Demo - HTML Client

<!-- START DESCRIPTION lightstreamer-example-roundtrip-client-javascript -->

This project includes a simple web client front-end example for the [Lightstreamer - Round-Trip Demo - Java Adapter](https://github.com/Lightstreamer/Lightstreamer-example-RoundTrip-adapter-java).

## Live Demo

[![screenshot](screen_roundtrip_large.png)](http://demos.lightstreamer.com/RoundTripDemo)<br>
###[![](http://demos.lightstreamer.com/site/img/play.png) View live demo](http://demos.lightstreamer.com/RoundTripDemo)

## Details

The *Round-Trip Demo* uses the <b>JavaScript Client API for Lightstreamer</b> to let you broadcast messages as you type, character by character, to all the browsers displaying that page. Type anything in the 5 fields. Your characters will be delivered to the server, which will send them back to all the browsers, including yours (in the bottom grid). Launch multiple instances of the demo, possibly on different browsers or different machines, to really appreciate the broadcast capabilities. 
You will type some text in a browser and see it appear in real-time on another browser.<br>

The grid to the bottom reports the originating IP address and the timestamp of the last change applied to each item.<br>

<i>Note: When you publish a value, your IP address is publicly displayed.</i>

The demo includes the following client-side functionalities:
* A [Subscription](http://www.lightstreamer.com/docs/client_javascript_uni_api/Subscription.html) containing 5 items, subscribed to in <b>MERGE</b> mode feeding a [StaticGrid](http://www.lightstreamer.com/docs/client_javascript_uni_api/StaticGrid.html).
* The messages are sent to the Lightstreamer Server using the [LightstreamerClient.sendMessage](http://www.lightstreamer.com/docs/client_javascript_uni_api/LightstreamerClient.html#sendMessage) utility.<commit_msg>Fix markup.<commit_after># Lightstreamer - Round-Trip Demo - HTML Client

<!-- START DESCRIPTION lightstreamer-example-roundtrip-client-javascript -->

This project includes a simple web client front-end example for the [Lightstreamer - Round-Trip Demo - Java Adapter](https://github.com/Lightstreamer/Lightstreamer-example-RoundTrip-adapter-java).

## Live Demo

[![screenshot](screen_roundtrip_large.png)](http://demos.lightstreamer.com/RoundTripDemo)<br>
### [![](http://demos.lightstreamer.com/site/img/play.png) View live demo](http://demos.lightstreamer.com/RoundTripDemo)

## Details

The *Round-Trip Demo* uses the <b>JavaScript Client API for Lightstreamer</b> to let you broadcast messages as you type, character by character, to all the browsers displaying that page. Type anything in the 5 fields. Your characters will be delivered to the server, which will send them back to all the browsers, including yours (in the bottom grid). Launch multiple instances of the demo, possibly on different browsers or different machines, to really appreciate the broadcast capabilities. 
You will type some text in a browser and see it appear in real-time on another browser.<br>

The grid to the bottom reports the originating IP address and the timestamp of the last change applied to each item.<br>

<i>Note: When you publish a value, your IP address is publicly displayed.</i>

The demo includes the following client-side functionalities:
* A [Subscription](http://www.lightstreamer.com/docs/client_javascript_uni_api/Subscription.html) containing 5 items, subscribed to in <b>MERGE</b> mode feeding a [StaticGrid](http://www.lightstreamer.com/docs/client_javascript_uni_api/StaticGrid.html).
* The messages are sent to the Lightstreamer Server using the [LightstreamerClient.sendMessage](http://www.lightstreamer.com/docs/client_javascript_uni_api/LightstreamerClient.html#sendMessage) utility.
{'fraction_non_alphanumeric': 0.09191466947590203, 'fraction_numerical': 0.0010534632604687912, 'mean_word_length': 5.41554054054054, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '1578159', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1014, 'n_words': 382}