private void ReceiveMessageHandler(byte[] data, PerChannelID id) { Logger.Log("Received packet!"); PacketSubscribers?.Invoke(_serializer.DeserializeObject(data), GetConnection(id, false)); }
private void ReceiveMessageHandler(byte[] data) { Logger.Log("Received packet!"); PacketSubscribers?.Invoke(_serializer.DeserializeObject(data)); }