Interface NetworkNodeStub

Deprecated

This in an internal interface

Hierarchy

  • NetworkNodeStub

Properties

addMessageListener: ((listener: ((msg: StreamMessage<unknown>) => void)) => void)

Type declaration

getMetricsContext: (() => MetricsContext)

Type declaration

getNeighbors: (() => readonly string[])

Type declaration

    • (): readonly string[]
    • Returns readonly string[]

getNeighborsForStreamPart: ((streamPartId: StreamPartID) => readonly string[])

Type declaration

getNodeId: (() => string)

Type declaration

    • (): string
    • Returns string

getRtt: ((nodeId: string) => undefined | number)

Type declaration

    • (nodeId: string): undefined | number
    • Parameters

      • nodeId: string

      Returns undefined | number

getStreamParts: (() => Iterable<StreamPartID>)

Type declaration

hasProxyConnection: ((streamPartId: StreamPartID, contactNodeId: string, direction: ProxyDirection) => boolean)

Type declaration

hasStreamPart: ((streamPartId: StreamPartID) => boolean)

Type declaration

publish: ((streamMessage: StreamMessage<unknown>) => void)

Type declaration

removeMessageListener: ((listener: ((msg: StreamMessage<unknown>) => void)) => void)

Type declaration

setExtraMetadata: ((metadata: Record<string, unknown>) => void)

Type declaration

    • (metadata: Record<string, unknown>): void
    • Parameters

      • metadata: Record<string, unknown>

      Returns void

subscribe: ((streamPartId: StreamPartID) => void)

Type declaration

subscribeAndWaitForJoin: ((streamPart: StreamPartID, timeout?: number) => Promise<number>)

Type declaration

    • (streamPart: StreamPartID, timeout?: number): Promise<number>
    • Parameters

      Returns Promise<number>

unsubscribe: ((streamPartId: StreamPartID) => void)

Type declaration

waitForJoinAndPublish: ((msg: StreamMessage<unknown>, timeout?: number) => Promise<number>)

Type declaration

    • (msg: StreamMessage<unknown>, timeout?: number): Promise<number>
    • Parameters

      Returns Promise<number>

Generated using TypeDoc