protected void _DispatchApianMessage(string from, string to, long msSinceSent, GameNetClientMessage clientMessage) { ApianMessage apMsg = DeserializeApianMessage(clientMessage.clientMsgType, clientMessage.payload); logger.Verbose($"_DispatchApianMessage() Type: {apMsg.MsgType}, src: {(from==LocalP2pId()?"Local":from)}"); if (ApianInstances.ContainsKey(apMsg.DestGroupId)) { ApianInstances[apMsg.DestGroupId].OnApianMessage(from, to, apMsg, msSinceSent); } }
public void SendApianMessage(string toChannel, ApianMessage appMsg) { logger.Verbose($"SendApianMessage() - type: {appMsg.MsgType}, To: {toChannel}"); _SendClientMessage(toChannel, appMsg.MsgType, JsonConvert.SerializeObject(appMsg)); }