// Copyright (c) 2013, the Clean project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

/**
 * A library for server-client communication and interaction
 * Client(Browser) side
 */
library clean_ajax.client_backend;

import 'client.dart';
import 'server.dart';
export 'client.dart';

Connection createLoopBackConnection(MultiRequestHandler requestHandler,
                                    authenticatedUserId) =>
  new Connection.config(
      new LoopBackTransport(requestHandler.handleLoopBackRequest,
          authenticatedUserId)
  );

// Copyright (c) 2013, the Clean project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

/**
 * A library for server-client communication and interaction
 * Client(Browser) side
 */
library clean_ajax.client_backend;

import 'client.dart';
import 'server.dart';
export 'client.dart';

Connection createLoopBackConnection(MultiRequestHandler requestHandler,
                                    [authenticatedUserId]) =>
  new Connection.config(
      new LoopBackTransport(requestHandler.handleLoopBackRequest,
          authenticatedUserId)
  );

Make authenticatedUserId be optional parameter.
Make authenticatedUserId be optional parameter.
