New to Kendo UI for jQuery? Download free 30-day trial

Binding to WebSocket

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • web-socket.html
  • Sample service

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.

Support & Learning Resources