Constructors
constructor
- new Downlink(context: DownlinkContext, owner?: DownlinkOwner, init?: DownlinkInit, hostUri?: Uri, nodeUri?: Uri, laneUri?: Uri, prio?: number, rate?: number, body?: Value, flags?: number, observers?: ReadonlyArray<DownlinkObserver> | DownlinkObserver | null): Downlink
-
Parameters
-
context: DownlinkContext
-
Optional owner: DownlinkOwner
-
-
Default value hostUri: Uri = Uri.empty()
-
Default value nodeUri: Uri = Uri.empty()
-
Default value laneUri: Uri = Uri.empty()
-
Default value prio: number = 0
-
Default value rate: number = 0
-
Default value body: Value = Value.absent()
-
Default value flags: number = 0
-
Methods
body
- body(): Value
- body(body: AnyValue): this
-
Returns Value
-
Parameters
Returns this
Protected Abstract copy
- copy(context: DownlinkContext, owner: DownlinkOwner | undefined, hostUri: Uri, nodeUri: Uri, laneUri: Uri, prio: number, rate: number, body: Value, flags: number, observers: ReadonlyArray<DownlinkObserver> | null): this
-
Parameters
-
context: DownlinkContext
-
owner: DownlinkOwner | undefined
-
hostUri: Uri
-
nodeUri: Uri
-
laneUri: Uri
-
prio: number
-
rate: number
-
body: Value
-
flags: number
-
observers: ReadonlyArray<DownlinkObserver> | null
Returns this
hostUri
- hostUri(): Uri
- hostUri(hostUri: AnyUri): this
-
Returns Uri
-
Parameters
Returns this
isAuthenticated
- isAuthenticated(): boolean
keepLinked
- keepLinked(): boolean
- keepLinked(keepLinked: boolean): this
-
Returns boolean
-
Parameters
Returns this
keepSynced
- keepSynced(): boolean
- keepSynced(keepSynced: boolean): this
-
Returns boolean
-
Parameters
Returns this
laneUri
- laneUri(): Uri
- laneUri(laneUri: AnyUri): this
-
Returns Uri
-
Parameters
Returns this
nodeUri
- nodeUri(): Uri
- nodeUri(nodeUri: AnyUri): this
-
Returns Uri
-
Parameters
Returns this
prio
- prio(): number
- prio(prio: number): this
-
Returns number
-
Parameters
Returns this
rate
- rate(): number
- rate(rate: number): this
-
Returns number
-
Parameters
Returns this
unobserve
- unobserve(observer: unknown): this