header

### Error handling demo

Loading...

We try four cases here. "No error" and "Empty action" are both valid responses, except that the second one gives a response with no commands and so it issues a warning into the kss log. "Error" gives a failed responses due to an exception in the server method on the server.

The buttons in the first row have no error handlers.

The buttons in the second row have individual error handlers.

Timed out are also handled like errors. The timeout period is by default to 8000 ms now.

The timeout is set to 100 ms on the button hereunder. Click calls an action-server that explicitely waits for 2000ms. In other words, the timeout is triggered.

In addition, the request queue manager queues up the outgoing responses and maximizes their number (currently in 4): click like crazy on the buttons and you will see that your server will not get hogged. More will be told about this topic in the upcoming documentation.

logger