[fix] Display messages in real-time in the api