/// <summary> /// ReactorClient packet receiver /// </summary> /// <param name="data"></param> public virtual void ReceiverOnReceivedPacketEvent(byte[] data) { byte[] d = Encryption.AES_Decrypt(data, Key, Salt); EosPacket p = new EosPacket(d); if (p.Type == EosPacketType.Message) { HandlePushMessage(p); } else if (p.Type == EosPacketType.Shutdown) { HandleServerShutdown(); } }