/// <summary> /// 关闭指定客户端连接 /// </summary> /// <param name="theConnection">指定的客户端连接</param> public void CloseConnection(WebSocketConnection theConnection) { theConnection.Close(); }
private void AddConnection(WebSocketConnection theConnection) { _connectionList[theConnection.ConnectionId] = theConnection; }