function SyncServer(callback) {
  this.callback = callback || {__proto__: SyncServerCallback};
  this.server   = new HttpServer();
  this.started  = false;
  this.users    = {};
  this._log     = Log.repository.getLogger(SYNC_HTTP_LOGGER);

  // Install our own default handler. This allows us to mess around with the
  // whole URL space.
  let handler = this.server._handler;
  handler._handleDefault = this.handleDefault.bind(this, handler);
}
/**
 * Construct a new test Sync server. Takes a callback object (e.g.,
 * SyncServerCallback) as input.
 */
Construct a new test Sync server. Takes a callback object  as input.
Construct a new test Sync server . Takes a callback object as input .
function SyncServer(callback) {
  this.callback = callback || {__proto__: SyncServerCallback};
  this.server   = new HttpServer();
  this.started  = false;
  this.users    = {};
  this._log     = Log.repository.getLogger(SYNC_HTTP_LOGGER);
  let handler = this.server._handler;
  handler._handleDefault = this.handleDefault.bind(this, handler);
}
function SyncServer ( callback ) { this . callback = callback || { __proto__ : SyncServerCallback } ; this . server = new HttpServer ( ) ; this . started = false ; this . users = { } ; this . _log = Log . repository . getLogger ( SYNC_HTTP_LOGGER ) ; let handler = this . server . _handler ; handler . _handleDefault = this . handleDefault . bind ( this , handler ) ; }
Construct a new test Sync server.
Construct a new test Sync server .
// Install our own default handler. This allows us to mess around with the // whole URL space.