void Server_OnDisconnected(object sender, ConnectionEventArgs e) { leapReader.OnSerializationReady -= e.Connection.OnReaderReady; OnConfigChanged -= e.Connection.OnReaderReady; AppendLog("Disconnected: " + e.Connection.Name); UpdateConnectionCountLabel(); }
void Server_OnAddedConnection(object sender, ConnectionEventArgs e) { leapReader.OnSerializationReady += e.Connection.OnReaderReady; OnConfigChanged += e.Connection.OnReaderReady; AppendLog("New connection: " + e.Connection.Name); UpdateConnectionCountLabel(); }