A simple example of a background thread that broadcasts the server time to all connected clients every two seconds.