public void Send(AsyncUserToken token, byte[] message, bool sendPlain = false)
 {
     if (!sendPlain)
     {
         message = MessageTransformer.PrepareMessageForSending(message);
     }
     token.Send(message);
 }
        public void Send(byte[] message, bool sendPlain = false)
        {
            if (!IsActive())
            {
                throw new InvalidOperationException("Socket client must run to send messge");
            }

            if (!sendPlain)
            {
                message = MessageTransformer.PrepareMessageForSending(message);
            }
            m_userToken.Send(message);
        }