Skip to main content

Class FakeAgentHostingProvider


Class FakeAgentHostingProvider

Declared in packages/sdk/client/src/services/fake-agent-hosting-provider.ts:9open in new window

Constructors

constructor(_throw)open in new window

Returns: FakeAgentHostingProvider

Arguments:

_throw: boolean

Properties

Methods

createAgent(invitationCode, identityKey)open in new window

Returns: Promise<string>

Arguments:

invitationCode: string

identityKey: string

destroyAgent(agentID)open in new window

Returns: Promise<boolean>

Arguments:

agentID: string

getAgent(agentID)open in new window

Returns: Promise<"null" | string>

Arguments:

agentID: string

init(authToken)open in new window

Initialize the client, potentially using the authToken to check authorization.

Returns: boolean

Arguments:

authToken: any