How to use the @casual-simulation/causal-tree-client-socketio.CausalTreeManager function in @casual-simulation/causal-tree-client-socketio

To help you get started, we’ve selected a few @casual-simulation/causal-tree-client-socketio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github casual-simulation / aux / src / aux-vm-client / partitions / RemoteCausalTreePartition.ts View on Github external
options: RemoteCausalTreePartitionOptions,
        user: User,
        config: RemoteCausalTreePartitionConfig
    ) {
        this._treeName = config.treeName;
        this._user = user;
        this._treeOptions = options.treeOptions || {};
        let url = new URL(options.defaultHost);

        this._socketManager = new SocketManager(
            config.host
                ? `${url.protocol}//${config.host}`
                : options.defaultHost
        );

        this._treeManager = new CausalTreeManager(
            this._socketManager,
            auxCausalTreeFactory(),
            options.store,
            options.crypto
        );
    }
github casual-simulation / aux / src / aux-vm / vm / AuxChannel.worker.ts View on Github external
constructor(defaultHost: string, config: AuxConfig) {
        this._config = config;
        this._subs = [];

        let url = new URL(defaultHost);
        this._socketManager = new SocketManager(
            config.host ? `${url.protocol}//${config.host}` : defaultHost
        );
        this._treeManager = new CausalTreeManager(
            this._socketManager.socket,
            auxCausalTreeFactory(),
            new NullCausalTreeStore()
        );
    }

@casual-simulation/causal-tree-client-socketio

A set of services that can be used to network with @casual-simulation/causal-tree-server-socketio

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis