/// <summary> /// DisConnected事件 /// </summary> /// <param name="sender"></param> /// <param name="ev"></param> private void DisconnectedWork(WebSocketConnection sender, EventArgs ev) { _connections.Remove(sender); sender.Close(); }