This Kendo UI for Angular sample project demonstrates how to update the Charts at real-time by using WebSocket API.
The demo is referred to in the Kendo UI for Angular official documentation in the article on using Kendo UI for Angular Charts with WebSockets.
- Clone this repository by using your favorite Git client or by executing
git clone https://github.com/telerik/kendo-angular.git
. - Enter the
examples
directory by runningcd examples
. - Run
npm install
to install the project dependencies. - Enter the project directory by running
cd projects/chart-websockets
. - In a separate terminal window, set up and run the server as outlined in the following section.
- Run
ng serve chart-websockets
. - Open http://localhost:4200.
The server
folder contains a WebSocket server which is implemented with Express.
To start the server:
- Run
cd server
. - Run
npm install
. - Run
npm start
.