API Reference
classes
Neighbourhoodproxy

@coasys/ad4m / Exports / NeighbourhoodProxy

Class: NeighbourhoodProxy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NeighbourhoodProxy(client, pID)

Parameters

NameType
clientNeighbourhoodClient
pIDstring

Defined in

neighbourhood/NeighbourhoodProxy.ts:10 (opens in a new tab)

Properties

#client

Private #client: NeighbourhoodClient

Defined in

neighbourhood/NeighbourhoodProxy.ts:7 (opens in a new tab)


#pID

Private #pID: string

Defined in

neighbourhood/NeighbourhoodProxy.ts:8 (opens in a new tab)

Methods

addSignalHandler

addSignalHandler(handler): Promise<void>

Parameters

NameType
handler(payload: PerspectiveExpression) => void

Returns

Promise<void>

Defined in

neighbourhood/NeighbourhoodProxy.ts:51 (opens in a new tab)


hasTelepresenceAdapter

hasTelepresenceAdapter(): Promise<boolean>

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:19 (opens in a new tab)


onlineAgents

onlineAgents(): Promise<OnlineAgent[]>

Returns

Promise<OnlineAgent[]>

Defined in

neighbourhood/NeighbourhoodProxy.ts:23 (opens in a new tab)


otherAgents

otherAgents(): Promise<string[]>

Returns

Promise<string[]>

Defined in

neighbourhood/NeighbourhoodProxy.ts:15 (opens in a new tab)


removeSignalHandler

removeSignalHandler(handler): void

Parameters

NameType
handler(payload: PerspectiveExpression) => void

Returns

void

Defined in

neighbourhood/NeighbourhoodProxy.ts:55 (opens in a new tab)


sendBroadcast

sendBroadcast(payload): Promise<boolean>

Parameters

NameType
payloadPerspective

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:43 (opens in a new tab)


sendBroadcastU

sendBroadcastU(payload): Promise<boolean>

Parameters

NameType
payloadPerspectiveUnsignedInput

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:47 (opens in a new tab)


sendSignal

sendSignal(remoteAgentDid, payload): Promise<boolean>

Parameters

NameType
remoteAgentDidstring
payloadPerspective

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:35 (opens in a new tab)


sendSignalU

sendSignalU(remoteAgentDid, payload): Promise<boolean>

Parameters

NameType
remoteAgentDidstring
payloadPerspectiveUnsignedInput

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:39 (opens in a new tab)


setOnlineStatus

setOnlineStatus(status): Promise<boolean>

Parameters

NameType
statusPerspective

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:27 (opens in a new tab)


setOnlineStatusU

setOnlineStatusU(status): Promise<boolean>

Parameters

NameType
statusPerspectiveUnsignedInput

Returns

Promise<boolean>

Defined in

neighbourhood/NeighbourhoodProxy.ts:31 (opens in a new tab)