Skip to content

This project contains a demo client showing integration between Lightstreamer JavaScript Client library and Electron

License

Notifications You must be signed in to change notification settings

Lightstreamer/Lightstreamer-example-StockList-client-electron

Repository files navigation

Lightstreamer - Basic Stock-List Demo - Electron Client

This project contains a demo application showing the integration between the Lightstreamer JavaScript Client library and Electron.

Demo ScreenShot

Details

This demo displays real-time market data for ten stocks generated by a feed simulator and is based on Basic Stock-List Demo.
This project shows how is it possible to integrate the JavaScript Client API for Lightstreamer into Electron, in order to quickly create cross-platform desktop apps embedding real-time web technologies.

If you want to go deeper into Electron, check out the Electron site.

Install

If you want to install a version of this demo pointing to your local Lightstreamer Server, create a local clone of this repository on your computer and follow these steps:

  • If you don't have npm installed on your system, please install it.
  • Note that, as prerequisite, the Lightstreamer - Stock- List 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.
  • Launch Lightstreamer Server.
  • Get the lightstreamer.min.js file from npm or unpkg and put it in the js folder of the demo (if that is the case, please create it).
  • From command line go into the Lightstreamer-example-StockList-client-electron folder and run npm install.

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 this line:

var lsClient = new LightstreamerClient(protocolToUse+"//localhost:"+portToUse,"DEMO");

in renderer.js and change it accordingly.

The demo is now ready to be launched with npm start.

Build

To build the app by using Electron Forge, run the command npm run make.

Electron Forge creates the out folder where your package will be located.

See Also

Lightstreamer Adapters Needed by These Demo Clients

Related Projects

Lightstreamer Compatibility Notes

  • Compatible with Lightstreamer JavaScript Client SDK version 9.0 and Lightstreamer Server 7.4.

About

This project contains a demo client showing integration between Lightstreamer JavaScript Client library and Electron

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •