public void Send(PackageType type)
        {
            if (this.state == ProtocolState.closed)
            {
                return;
            }

            this.transporter.Send(PackageProtocol.Encode(type));
        }
        // Send message use the transporter
        public void Send(PackageType type, byte[] body)
        {
            if (this.state == ProtocolState.closed)
            {
                return;
            }

            byte[] pkg = PackageProtocol.Encode(type, body);
            this.transporter.Send(pkg);
        }