I have created a task using scheduleAtFixedRate to run every 25 seconds. This task sends out a ping for all active sessions over a WebSocket connection.
//