'Handle messages with new data from server.'

def on_receive(self, message):

    if (u'close' in message):
        self.connection.stop(u'Client    most    likely    disconnected.')
        return
    if (u'received' not in message):
        return
    self.connection.disable_timeout()
    self.recv_buffer += message[u'received']
    for line in self.parse_lines():
        line = self.decode(line)
        if (line is not None):
            self.on_line_received(line)
    if (not self.prevent_timeout):
        self.connection.enable_timeout()
