private static JoinGroupWithAckMessage CreateJoinGroupWithAckMessage(ref MessagePackReader reader, int arrayLength)
        {
            var connectionId = ReadString(ref reader, "connectionId");
            var groupName    = ReadString(ref reader, "groupName");
            var ackId        = ReadInt32(ref reader, "ackId");

            var result = new JoinGroupWithAckMessage(connectionId, groupName, ackId);

            if (arrayLength >= 5)
            {
                result.ReadExtensionMembers(ref reader);
            }
            return(result);
        }
 private static void WriteJoinGroupWithAckMessage(ref MessagePackWriter writer, JoinGroupWithAckMessage message)
 {
     writer.WriteArrayHeader(4);
     writer.Write(ServiceProtocolConstants.JoinGroupWithAckMessageType);
     writer.Write(message.ConnectionId);
     writer.Write(message.GroupName);
     writer.Write(message.AckId);
 }