The example sends events from JavaScript to the application.
It emits a count value every second, which is then sent to the application and logged in the console.