print connected to message synchronously