I have based my code on the example, however I do not use a Timer to send the Data to the Socket. Data comes in via MQTT, then gets sent to the multiple web socket clients.
Also do I need to 'ping' the server as per one of the examples, at a regular interval..??