Skip to content

Latest commit

 

History

History
58 lines (30 loc) · 1.03 KB

tryorama.scenario.addplayerswithapps.md

File metadata and controls

58 lines (30 loc) · 1.03 KB

Home > @holochain/tryorama > Scenario > addPlayersWithApps

Scenario.addPlayersWithApps() method

Create and add multiple players to the scenario, with an app installed for each player.

Signature:

addPlayersWithApps(playersApps: Array<{
        appBundleSource: AppBundleSource;
        options?: AppOptions;
    }>): Promise<Player[]>;

Parameters

Parameter

Type

Description

playersApps

Array<{ appBundleSource: AppBundleSource; options?: AppOptions; }>

An array with an app for each player.

**Returns:**

Promise<Player[]>

All created players.