Skip to content

Packages  ›  trotsky  ›  Trotsky  ›  init

Trotsky.init() method

Initializes a new Trotsky instance with the specified agent.

Signature:

typescript
static init(agent: AtpAgent): Trotsky;

Parameters

Parameter

Type

Description

agent

AtpAgent

The instance.

Returns:

Trotsky

A new Trotsky instance.