Properties
addMessageListener
add
Message
Listener
: ((listener
: ((msg
: StreamMessage<unknown>) => void)) => void)
Type declaration
-
- (listener: ((msg: StreamMessage<unknown>) => void)): void
-
Returns void
getNeighbors
getNeighbors: (() => readonly string[])
Type declaration
-
- (): readonly string[]
-
Returns readonly string[]
getNeighborsForStreamPart
get
Neighbors
For
Stream
Part
: ((streamPartId
: StreamPartID) => readonly string[])
Type declaration
-
- (streamPartId: StreamPartID): readonly string[]
-
Returns readonly string[]
getNodeId
getNodeId: (() => string)
Type declaration
-
- (): string
-
Returns string
getRtt
getRtt: ((nodeId: string) => undefined | number)
Type declaration
-
- (nodeId: string): undefined | number
-
Returns undefined | number
removeMessageListener
remove
Message
Listener
: ((listener
: ((msg
: StreamMessage<unknown>) => void)) => void)
Type declaration
-
- (listener: ((msg: StreamMessage<unknown>) => void)): void
-
Returns void
setExtraMetadata
setExtraMetadata: ((metadata: Record<string, unknown>) => void)
Type declaration
-
- (metadata: Record<string, unknown>): void
-
Parameters
-
metadata: Record<string, unknown>
Returns void
subscribeAndWaitForJoin
subscribe
And
Wait
For
Join
: ((streamPart
: StreamPartID, timeout
?: number) => Promise<number>)
Type declaration
-
- (streamPart: StreamPartID, timeout?: number): Promise<number>
-
Returns Promise<number>
waitForJoinAndPublish
wait
For
Join
And
Publish
: ((msg
: StreamMessage<unknown>, timeout
?: number) => Promise<number>)
Type declaration
-
- (msg: StreamMessage<unknown>, timeout?: number): Promise<number>
-
Returns Promise<number>
Deprecated
This in an internal interface