The Chat-Tile Demo implements a simple chat/collaborative application based on Lightstreamer.
This project includes a web client front-end example for the Lightstreamer - Chat-Tile Demo - Java Adapter.
This Chat-Tile Demo implements a simple chat/collaborative application fed in real-time via a Lightstreamer server.
Once logged in, the user can start exchange messages with every other user present in the demo. For each user a tile of a specific background color is created, which contains the last message typed as well as the nickname chosen by the user and the user-agent information of the originating client.
User messages are broadcasted as you type, character by character, to all other users.
The demo includes the following client-side functionalities:
- A Subscription containing 1 item, subscribed to in COMMAND mode.
- The user messages are sent to the Lightstreamer Server using the LightstreamerClient.sendMessage utility.
If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:
- As prerequisite, the Lightstreamer - Chat-Tile Demo - Java Adapter has to be deployed on your local Lightstreamer Server instance. Please check out that project and follow the installation instructions provided with it.
- Download this project.
- Get the
lightstreamer.min.jsfile from npm or unpkg and put it in thesrc/jsfolder of the demo. - Get the
require.jsfile from requirejs.org and put it in thesrc/jsfolder of the demo. - Get the
masonry.pkgd.min.jsfile from Masonry - Cascading grid layout library - home page and put it in thesrc/jsfolder of the demo. - Deploy this demo on the Lightstreamer Server (used as Web server) or in any external Web Server. If you choose the former, please note that in the
<LS_HOME>/pages/demos/folder, there may be already aChatTileDemofolder. If this is not your case, please create the folders<LS_HOME>/pages/demos/ChatTileDemoand copy here the contents of the/srcfolder of this project. The client demo configuration assumes that Lightstreamer Server, Lightstreamer Adapters, and this client are launched on the same machine. If you need to target a different Lightstreamer server, please search injs/lsClient.jsthis line:
var lsClient = new LightstreamerClient(protocolToUse+"//localhost:"+portToUse,"CHATTILE");
and change it accordingly (replace null with your server URI). - Open your browser and point it to: http://localhost:8080/demos/ChatTileDemo/
- Lightstreamer - Chat-Tile Demo - Java Adapter
- Lightstreamer - Reusable Metadata Adapters - Java Adapter
- Lightstreamer - Room-Ball Demo - HTML Client
- Lightstreamer - Chat Demo - HTML Client
- Lightstreamer - Round-Trip Demo - HTML Client
- Lightstreamer - Basic Messenger Demo - HTML Client
- Compatible with Lightstreamer JavaScript Client library version 6.0 or newer (installation instructions for version 8.0 or newer).

View live demo