Ejemplo n.º 1
0
        internal void sendByJsonStr(string route, uint id, string msg)
        {
            if (this.state != ProtocolState.working)
            {
                return;
            }

            byte[] body = messageProtocol.encodeByJsonStr(route, id, msg);

            send(PackageType.PKG_DATA, body);
        }