public void run() {
boolean timeout = false;
while (!this.terminate) {
try {
String messageString = this.bufferedReader.readLine();
ClientMessage message = ClientMessage.renderMessageString(messageString);
if (message instanceof InvalidMessage) {
logger.warn("Client " + this.client.getClientID() + ": " + "received invalid message " + messageString);
continue;
}
if (message instanceof PongMessage) {