926 new features of WINDEV 26, WEBDEV 26 and WINDEV Mobile 26

WEBSOCKET SERVER: COMMUNICATION INITIATED BY THE SERVER HANDLE SOCKETS WITH EASE 768 N e w f e a t u r e W D W B WM HANDLE WEBSOCKETS In version 26, the WEBDEV Application Server includes a Web- socket server as standard. Benefit provided by this new feature of version 26: A powerful feature 769 N e w f e a t u r e W D W B WM A SOCKET USE CASE Let's suppose you want to display stock levels in real time on a site. You have 2 main possibilities to program this feature: 1. set up a timer in the page that calls the server at regular intervals to read the stock value of a given article, and display this value if it has changed. 2. use a WebSocket: if the stock changes, and only in this case, the server sends the new value to the page. In the first case, with a timer, a large number of requests will be sent to the server. This, multiplied by the number of web users, will end up creating a lot of pointless traffic... This can cause a huge server load and unnecessary bandwidth consumption. In the second case, with WebSockets, there will be communi- cation only when the value of the stock changes: this is clearly a better option. Benefit provided by this new feature of version 26: Who wouldn't like to avoid pointless traffic? 80 WINDEV 26 WEBDEV 26 WINDEV Mobile 26 New features