private void OnRemoteEvent(PacketHeader packetHeader, Connection connection, NetworkEvent incomingObject) { RemoteEventReceived?.Invoke(this, incomingObject.EventKey); }
private void OnConnectionClosed(Connection connection) { vaProxy.WriteToLog($"Connection Closed {connection?.ConnectionInfo?.RemoteEndPoint}", "red"); RemoteEventReceived?.Invoke(this, "SN_CONNECTION_CLOSED"); Connection = null; }