add a message entity and use it in the client

same here for the sample rate ?