/// <summary> /// Disconnects a specific client by name /// </summary> public void Disconnect(string name) { RenderNode node = GetNodeByName(name); if (node == null) { throw new ArgumentException($"Node does not exist with name {name}"); } node.Disconnect(); }
public void RemoveNode(string name) { RenderNode node = GetNodeByName(name); if (node != null) { Nodes.Remove(node); node.Disconnect(); OnNodeRemoved?.Invoke(this, node); } }