New to Kendo UI for jQuery? Download free 30-day trial
Binding to WebSocket
- EXAMPLE
- VIEW SOURCE
-
EDIT
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
Description
There are situations when you would like to perform real-time updates for all users which start a session with your web app. This is when you can utilize WebSockets and the Kendo UI DataSource. The latter supports WebSockets by setting transport->push/read/update/destroy/create methods configuration for handling data requests in this way. In this way you tell the data source to use web sockets for transmitting and operating with data in real time on every page refresh, also known under the term long polling.
This is especially useful for web applications which require high-frequency updates, for instance chat apps, real-time gaming, etc. More on the WebSockets support of the Kendo UI Data Source can be found in this section of the docs.