adding const to char* in Connection::sendMessage()