syndicate-js/packages/syndicatec/examples/javascript/src/index.js

16 lines
555 B
JavaScript
Raw Normal View History

2021-12-01 16:24:29 +00:00
/// SPDX-License-Identifier: GPL-3.0-or-later
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
2021-01-18 22:11:53 +00:00
2021-01-19 14:13:42 +00:00
import { N } from './protocol.js';
2021-12-02 23:55:42 +00:00
import * as Box from './box.js';
import * as Client from './client.js';
import { Dataspace } from '@syndicate-lang/core';
2021-01-18 22:11:53 +00:00
console.time('box-and-client-' + N.toString());
2021-12-02 23:55:42 +00:00
boot() {
thisTurn.activeFacet.preventInertCheck();
const ds = create new Dataspace();
2021-12-03 00:00:47 +00:00
Box.boot(thisTurn, ds);
Client.boot(thisTurn, ds, () => console.timeEnd('box-and-client-' + N.toString()));
2021-01-18 22:11:53 +00:00
}