Interface IScopeOptions

IScopeOptions Options for the scope operation, including client ID, swarm name, and optional error handler.

interface IScopeOptions {
    clientId: string;
    onError?: (error: Error) => void;
    swarmName: string;
}

Properties

clientId: string

The client identifier for the scope operation. Unique identifier used to track and manage the session within the scope.

onError?: (error: Error) => void

Optional callback function to handle errors during execution. Called when an error occurs during the scope operation, allowing for custom error handling.

swarmName: string

The name of the swarm associated with the scope. Identifies which swarm configuration to use for the scoped operation.