Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/client
ListDownlink
Class ListDownlink<V, VU>
Type parameters
V
VU =
never
Hierarchy
Downlink
ListDownlink
Index
Constructors
constructor
Properties
context
flags
model
observers
own
Body
own
Host
Uri
own
Lane
Uri
own
Node
Uri
own
Prio
own
Rate
own
Value
Form
owner
state0
Accessors
length
session
type
Methods
body
clear
close
close
Up
command
copy
did
Alias
Model
did
Clear
did
Close
did
Connect
did
Disconnect
did
Drop
did
Fail
did
Link
did
Move
did
Remove
did
Sync
did
Take
did
Unlink
did
Update
entries
for
Each
get
get
Entry
host
Did
Connect
host
Did
Disconnect
host
Did
Fail
host
Uri
initial
State
insert
is
Authenticated
is
Connected
is
Empty
is
Linked
is
Synced
keep
Linked
keep
Synced
keys
lane
Uri
list
Did
Clear
list
Did
Drop
list
Did
Move
list
Did
Remove
list
Did
Take
list
Did
Update
list
Will
Clear
list
Will
Drop
list
Will
Move
list
Will
Remove
list
Will
Take
list
Will
Update
move
node
Uri
observe
on
Command
on
Command
Message
on
Event
on
Event
Message
on
Link
Request
on
Linked
Response
on
Sync
Request
on
Synced
Response
on
Unlink
Request
on
Unlinked
Response
open
open
Up
pop
prio
push
rate
remove
set
set
State
shift
snapshot
splice
unobserve
unshift
value
Form
values
will
Clear
will
Drop
will
Link
will
Move
will
Remove
will
Sync
will
Take
will
Unlink
will
Update
init
Form
Constructors
constructor
new
List
Downlink<V, VU>
(
context
:
DownlinkContext
, owner
:
null
|
DownlinkOwner
, init
?:
ListDownlinkInit
<
V
,
VU
>
, hostUri
?:
Uri
, nodeUri
?:
Uri
, laneUri
?:
Uri
, prio
?:
number
, rate
?:
number
, body
?:
Value
, flags
?:
number
, observers
?:
ListDownlinkObserver
<
V
,
VU
>
|
readonly
ListDownlinkObserver
<
V
,
VU
>
[]
, valueForm
?:
Form
<
V
,
VU
>
, state0
?:
null
|
STree
<
Value
,
Value
>
)
:
ListDownlink
<
V
,
VU
>
Type parameters
V
VU =
never
Parameters
context:
DownlinkContext
owner:
null
|
DownlinkOwner
Optional
init:
ListDownlinkInit
<
V
,
VU
>
Optional
hostUri:
Uri
Optional
nodeUri:
Uri
Optional
laneUri:
Uri
Optional
prio:
number
Optional
rate:
number
Optional
body:
Value
Optional
flags:
number
Optional
observers:
ListDownlinkObserver
<
V
,
VU
>
|
readonly
ListDownlinkObserver
<
V
,
VU
>
[]
Optional
valueForm:
Form
<
V
,
VU
>
Optional
state0:
null
|
STree
<
Value
,
Value
>
Returns
ListDownlink
<
V
,
VU
>
Properties
Readonly
context
context
:
DownlinkContext
Readonly
flags
flags
:
number
Readonly
model
model
:
null
|
ListDownlinkModel
Readonly
observers
observers
:
readonly
ListDownlinkObserver
<
V
,
VU
>
[]
Readonly
own
Body
own
Body
:
Value
Readonly
own
Host
Uri
own
Host
Uri
:
Uri
Readonly
own
Lane
Uri
own
Lane
Uri
:
Uri
Readonly
own
Node
Uri
own
Node
Uri
:
Uri
Readonly
own
Prio
own
Prio
:
number
Readonly
own
Rate
own
Rate
:
number
Readonly
own
Value
Form
own
Value
Form
:
Form
<
V
,
VU
>
Readonly
owner
owner
:
null
|
DownlinkOwner
Readonly
state0
state0
:
null
|
STree
<
Value
,
Value
>
Accessors
length
get
length
(
)
:
number
Returns
number
session
get
session
(
)
:
Value
Returns
Value
type
get
type
(
)
:
DownlinkType
Returns
DownlinkType
Methods
body
body
(
)
:
Value
body
(
body
:
AnyValue
)
:
ListDownlink
<
V
,
VU
>
Returns
Value
Parameters
body:
AnyValue
Returns
ListDownlink
<
V
,
VU
>
clear
clear
(
)
:
void
Returns
void
close
close
(
)
:
void
Returns
void
close
Up
close
Up
(
)
:
void
Returns
void
command
command
(
body
:
AnyValue
)
:
void
Parameters
body:
AnyValue
Returns
void
Protected
copy
copy<V, VU>
(
context
:
DownlinkContext
, owner
:
null
|
DownlinkOwner
, hostUri
:
Uri
, nodeUri
:
Uri
, laneUri
:
Uri
, prio
:
number
, rate
:
number
, body
:
Value
, flags
:
number
, observers
:
readonly
ListDownlinkObserver
<
V
,
VU
>
[]
, valueForm
?:
Form
<
V
,
VU
>
, state0
?:
null
|
STree
<
Value
,
Value
>
)
:
ListDownlink
<
V
,
VU
>
Type parameters
V
VU
Parameters
context:
DownlinkContext
owner:
null
|
DownlinkOwner
hostUri:
Uri
nodeUri:
Uri
laneUri:
Uri
prio:
number
rate:
number
body:
Value
flags:
number
observers:
readonly
ListDownlinkObserver
<
V
,
VU
>
[]
Optional
valueForm:
Form
<
V
,
VU
>
Optional
state0:
null
|
STree
<
Value
,
Value
>
Returns
ListDownlink
<
V
,
VU
>
Protected
did
Alias
Model
did
Alias
Model
(
)
:
void
Returns
void
did
Clear
did
Clear
(
didClear
:
ListDownlinkDidClear
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didClear:
ListDownlinkDidClear
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
did
Close
did
Close
(
didClose
:
DownlinkDidClose
)
:
ListDownlink
<
V
,
VU
>
Parameters
didClose:
DownlinkDidClose
Returns
ListDownlink
<
V
,
VU
>
did
Connect
did
Connect
(
didConnect
:
DownlinkDidConnect
)
:
ListDownlink
<
V
,
VU
>
Parameters
didConnect:
DownlinkDidConnect
Returns
ListDownlink
<
V
,
VU
>
did
Disconnect
did
Disconnect
(
didDisconnect
:
DownlinkDidDisconnect
)
:
ListDownlink
<
V
,
VU
>
Parameters
didDisconnect:
DownlinkDidDisconnect
Returns
ListDownlink
<
V
,
VU
>
did
Drop
did
Drop
(
didDrop
:
ListDownlinkDidDrop
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didDrop:
ListDownlinkDidDrop
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
did
Fail
did
Fail
(
didFail
:
DownlinkDidFail
)
:
ListDownlink
<
V
,
VU
>
Parameters
didFail:
DownlinkDidFail
Returns
ListDownlink
<
V
,
VU
>
did
Link
did
Link
(
didLink
:
DownlinkDidLink
)
:
ListDownlink
<
V
,
VU
>
Parameters
didLink:
DownlinkDidLink
Returns
ListDownlink
<
V
,
VU
>
did
Move
did
Move
(
didMove
:
ListDownlinkDidMove
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didMove:
ListDownlinkDidMove
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
did
Remove
did
Remove
(
didRemove
:
ListDownlinkDidRemove
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didRemove:
ListDownlinkDidRemove
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
did
Sync
did
Sync
(
didSync
:
DownlinkDidSync
)
:
ListDownlink
<
V
,
VU
>
Parameters
didSync:
DownlinkDidSync
Returns
ListDownlink
<
V
,
VU
>
did
Take
did
Take
(
didTake
:
ListDownlinkDidTake
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didTake:
ListDownlinkDidTake
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
did
Unlink
did
Unlink
(
didUnlink
:
DownlinkDidUnlink
)
:
ListDownlink
<
V
,
VU
>
Parameters
didUnlink:
DownlinkDidUnlink
Returns
ListDownlink
<
V
,
VU
>
did
Update
did
Update
(
didUpdate
:
ListDownlinkDidUpdate
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
didUpdate:
ListDownlinkDidUpdate
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
entries
entries
(
)
:
Cursor
<
[
Value
,
V
]
>
Returns
Cursor
<
[
Value
,
V
]
>
for
Each
for
Each<T, S>
(
callback
:
(
value
:
V
, index
:
number
, id
:
Value
)
=>
void
|
T
)
:
undefined
|
T
for
Each<T, S>
(
callback
:
(
value
:
V
, index
:
number
, id
:
Value
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
value
:
V
, index
:
number
, id
:
Value
)
=>
void
|
T
(
value
:
V
, index
:
number
, id
:
Value
)
:
void
|
T
Parameters
value:
V
index:
number
id:
Value
Returns
void
|
T
Returns
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
value
:
V
, index
:
number
, id
:
Value
)
=>
void
|
T
(
value
:
V
, index
:
number
, id
:
Value
)
:
void
|
T
Parameters
value:
V
index:
number
id:
Value
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
get
get
(
index
:
number
, id
?:
Value
)
:
V
Parameters
index:
number
Optional
id:
Value
Returns
V
get
Entry
get
Entry
(
index
:
number
, id
?:
Value
)
:
undefined
|
[
V
,
Value
]
Parameters
index:
number
Optional
id:
Value
Returns
undefined
|
[
V
,
Value
]
host
Did
Connect
host
Did
Connect
(
)
:
void
Returns
void
host
Did
Disconnect
host
Did
Disconnect
(
)
:
void
Returns
void
host
Did
Fail
host
Did
Fail
(
error
:
unknown
)
:
void
Parameters
error:
unknown
Returns
void
host
Uri
host
Uri
(
)
:
Uri
host
Uri
(
hostUri
:
AnyUri
)
:
ListDownlink
<
V
,
VU
>
Returns
Uri
Parameters
hostUri:
AnyUri
Returns
ListDownlink
<
V
,
VU
>
initial
State
initial
State
(
)
:
null
|
STree
<
Value
,
Value
>
initial
State
(
state0
:
null
|
STree
<
Value
,
Value
>
)
:
ListDownlink
<
V
,
VU
>
Returns
null
|
STree
<
Value
,
Value
>
Parameters
state0:
null
|
STree
<
Value
,
Value
>
Returns
ListDownlink
<
V
,
VU
>
insert
insert
(
index
:
number
, newObject
:
V
|
VU
, id
?:
Value
)
:
ListDownlink
<
V
,
VU
>
Parameters
index:
number
newObject:
V
|
VU
Optional
id:
Value
Returns
ListDownlink
<
V
,
VU
>
is
Authenticated
is
Authenticated
(
)
:
boolean
Returns
boolean
is
Connected
is
Connected
(
)
:
boolean
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
is
Linked
is
Linked
(
)
:
boolean
Returns
boolean
is
Synced
is
Synced
(
)
:
boolean
Returns
boolean
keep
Linked
keep
Linked
(
)
:
boolean
keep
Linked
(
keepLinked
:
boolean
)
:
ListDownlink
<
V
,
VU
>
Returns
boolean
Parameters
keepLinked:
boolean
Returns
ListDownlink
<
V
,
VU
>
keep
Synced
keep
Synced
(
)
:
boolean
keep
Synced
(
keepSynced
:
boolean
)
:
ListDownlink
<
V
,
VU
>
Returns
boolean
Parameters
keepSynced:
boolean
Returns
ListDownlink
<
V
,
VU
>
keys
keys
(
)
:
Cursor
<
Value
>
Returns
Cursor
<
Value
>
lane
Uri
lane
Uri
(
)
:
Uri
lane
Uri
(
laneUri
:
AnyUri
)
:
ListDownlink
<
V
,
VU
>
Returns
Uri
Parameters
laneUri:
AnyUri
Returns
ListDownlink
<
V
,
VU
>
list
Did
Clear
list
Did
Clear
(
)
:
void
Returns
void
list
Did
Drop
list
Did
Drop
(
lower
:
number
)
:
void
Parameters
lower:
number
Returns
void
list
Did
Move
list
Did
Move
(
fromIndex
:
number
, toIndex
:
number
, value
:
Value
)
:
void
Parameters
fromIndex:
number
toIndex:
number
value:
Value
Returns
void
list
Did
Remove
list
Did
Remove
(
index
:
number
, oldValue
:
Value
)
:
void
Parameters
index:
number
oldValue:
Value
Returns
void
list
Did
Take
list
Did
Take
(
upper
:
number
)
:
void
Parameters
upper:
number
Returns
void
list
Did
Update
list
Did
Update
(
index
:
number
, newValue
:
Value
, oldValue
:
Value
)
:
void
Parameters
index:
number
newValue:
Value
oldValue:
Value
Returns
void
list
Will
Clear
list
Will
Clear
(
)
:
void
Returns
void
list
Will
Drop
list
Will
Drop
(
lower
:
number
)
:
void
Parameters
lower:
number
Returns
void
list
Will
Move
list
Will
Move
(
fromIndex
:
number
, toIndex
:
number
, value
:
Value
)
:
void
Parameters
fromIndex:
number
toIndex:
number
value:
Value
Returns
void
list
Will
Remove
list
Will
Remove
(
index
:
number
)
:
void
Parameters
index:
number
Returns
void
list
Will
Take
list
Will
Take
(
upper
:
number
)
:
void
Parameters
upper:
number
Returns
void
list
Will
Update
list
Will
Update
(
index
:
number
, newValue
:
Value
)
:
Value
Parameters
index:
number
newValue:
Value
Returns
Value
move
move
(
fromIndex
:
number
, toIndex
:
number
, id
?:
Value
)
:
ListDownlink
<
V
,
VU
>
Parameters
fromIndex:
number
toIndex:
number
Optional
id:
Value
Returns
ListDownlink
<
V
,
VU
>
node
Uri
node
Uri
(
)
:
Uri
node
Uri
(
nodeUri
:
AnyUri
)
:
ListDownlink
<
V
,
VU
>
Returns
Uri
Parameters
nodeUri:
AnyUri
Returns
ListDownlink
<
V
,
VU
>
observe
observe
(
observer
:
ListDownlinkObserver
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
observer:
ListDownlinkObserver
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
on
Command
on
Command
(
onCommand
:
DownlinkOnCommand
)
:
ListDownlink
<
V
,
VU
>
Parameters
onCommand:
DownlinkOnCommand
Returns
ListDownlink
<
V
,
VU
>
on
Command
Message
on
Command
Message
(
body
:
Value
)
:
void
Parameters
body:
Value
Returns
void
on
Event
on
Event
(
onEvent
:
DownlinkOnEvent
)
:
ListDownlink
<
V
,
VU
>
Parameters
onEvent:
DownlinkOnEvent
Returns
ListDownlink
<
V
,
VU
>
on
Event
Message
on
Event
Message
(
message
:
EventMessage
)
:
void
Parameters
message:
EventMessage
Returns
void
on
Link
Request
on
Link
Request
(
request
?:
LinkRequest
)
:
void
Parameters
Optional
request:
LinkRequest
Returns
void
on
Linked
Response
on
Linked
Response
(
response
?:
LinkedResponse
)
:
void
Parameters
Optional
response:
LinkedResponse
Returns
void
on
Sync
Request
on
Sync
Request
(
request
?:
SyncRequest
)
:
void
Parameters
Optional
request:
SyncRequest
Returns
void
on
Synced
Response
on
Synced
Response
(
response
?:
SyncedResponse
)
:
void
Parameters
Optional
response:
SyncedResponse
Returns
void
on
Unlink
Request
on
Unlink
Request
(
request
?:
UnlinkRequest
)
:
void
Parameters
Optional
request:
UnlinkRequest
Returns
void
on
Unlinked
Response
on
Unlinked
Response
(
response
?:
UnlinkedResponse
)
:
void
Parameters
Optional
response:
UnlinkedResponse
Returns
void
open
open
(
)
:
ListDownlink
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
open
Up
open
Up
(
host
:
Host
)
:
void
Parameters
host:
Host
Returns
void
pop
pop
(
)
:
V
Returns
V
prio
prio
(
)
:
number
prio
(
prio
:
number
)
:
ListDownlink
<
V
,
VU
>
Returns
number
Parameters
prio:
number
Returns
ListDownlink
<
V
,
VU
>
push
push
(
...
newObjects
:
(
V
|
VU
)
[]
)
:
number
Parameters
Rest
...
newObjects:
(
V
|
VU
)
[]
Returns
number
rate
rate
(
)
:
number
rate
(
rate
:
number
)
:
ListDownlink
<
V
,
VU
>
Returns
number
Parameters
rate:
number
Returns
ListDownlink
<
V
,
VU
>
remove
remove
(
index
:
number
, id
?:
Value
)
:
ListDownlink
<
V
,
VU
>
Parameters
index:
number
Optional
id:
Value
Returns
ListDownlink
<
V
,
VU
>
set
set
(
index
:
number
, newObject
:
V
|
VU
, id
?:
Value
)
:
ListDownlink
<
V
,
VU
>
Parameters
index:
number
newObject:
V
|
VU
Optional
id:
Value
Returns
ListDownlink
<
V
,
VU
>
set
State
set
State
(
state
:
STree
<
Value
,
Value
>
)
:
void
Parameters
state:
STree
<
Value
,
Value
>
Returns
void
shift
shift
(
)
:
V
Returns
V
snapshot
snapshot
(
)
:
STree
<
Value
,
Value
>
Returns
STree
<
Value
,
Value
>
splice
splice
(
start
:
number
, deleteCount
?:
number
,
...
newObjects
:
(
V
|
VU
)
[]
)
:
V
[]
Parameters
start:
number
Optional
deleteCount:
number
Rest
...
newObjects:
(
V
|
VU
)
[]
Returns
V
[]
unobserve
unobserve
(
observer
:
unknown
)
:
ListDownlink
<
V
,
VU
>
Parameters
observer:
unknown
Returns
ListDownlink
<
V
,
VU
>
unshift
unshift
(
...
newObjects
:
(
V
|
VU
)
[]
)
:
number
Parameters
Rest
...
newObjects:
(
V
|
VU
)
[]
Returns
number
value
Form
value
Form
(
)
:
Form
<
V
,
VU
>
value
Form<V2, V2U>
(
valueForm
:
Form
<
V2
,
V2U
>
)
:
ListDownlink
<
V2
,
V2U
>
Returns
Form
<
V
,
VU
>
Type parameters
V2
V2U =
never
Parameters
valueForm:
Form
<
V2
,
V2U
>
Returns
ListDownlink
<
V2
,
V2U
>
values
values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
will
Clear
will
Clear
(
willClear
:
ListDownlinkWillClear
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willClear:
ListDownlinkWillClear
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
will
Drop
will
Drop
(
willDrop
:
ListDownlinkWillDrop
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willDrop:
ListDownlinkWillDrop
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
will
Link
will
Link
(
willLink
:
DownlinkWillLink
)
:
ListDownlink
<
V
,
VU
>
Parameters
willLink:
DownlinkWillLink
Returns
ListDownlink
<
V
,
VU
>
will
Move
will
Move
(
willMove
:
ListDownlinkWillMove
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willMove:
ListDownlinkWillMove
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
will
Remove
will
Remove
(
willRemove
:
ListDownlinkWillRemove
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willRemove:
ListDownlinkWillRemove
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
will
Sync
will
Sync
(
willSync
:
DownlinkWillSync
)
:
ListDownlink
<
V
,
VU
>
Parameters
willSync:
DownlinkWillSync
Returns
ListDownlink
<
V
,
VU
>
will
Take
will
Take
(
willTake
:
ListDownlinkWillTake
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willTake:
ListDownlinkWillTake
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
will
Unlink
will
Unlink
(
willUnlink
:
DownlinkWillUnlink
)
:
ListDownlink
<
V
,
VU
>
Parameters
willUnlink:
DownlinkWillUnlink
Returns
ListDownlink
<
V
,
VU
>
will
Update
will
Update
(
willUpdate
:
ListDownlinkWillUpdate
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
willUpdate:
ListDownlinkWillUpdate
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
Static
init
Form
init
Form
(
)
:
Form
<
undefined
|
DownlinkInit
,
never
>
Returns
Form
<
undefined
|
DownlinkInit
,
never
>
Modules
@swim/system
@swim/core
@swim/mesh
@swim/warp
@swim/client
@swim/toolkit
List
Downlink
constructor
context
flags
model
observers
own
Body
own
Host
Uri
own
Lane
Uri
own
Node
Uri
own
Prio
own
Rate
own
Value
Form
owner
state0
length
session
type
body
clear
close
close
Up
command
copy
did
Alias
Model
did
Clear
did
Close
did
Connect
did
Disconnect
did
Drop
did
Fail
did
Link
did
Move
did
Remove
did
Sync
did
Take
did
Unlink
did
Update
entries
for
Each
get
get
Entry
host
Did
Connect
host
Did
Disconnect
host
Did
Fail
host
Uri
initial
State
insert
is
Authenticated
is
Connected
is
Empty
is
Linked
is
Synced
keep
Linked
keep
Synced
keys
lane
Uri
list
Did
Clear
list
Did
Drop
list
Did
Move
list
Did
Remove
list
Did
Take
list
Did
Update
list
Will
Clear
list
Will
Drop
list
Will
Move
list
Will
Remove
list
Will
Take
list
Will
Update
move
node
Uri
observe
on
Command
on
Command
Message
on
Event
on
Event
Message
on
Link
Request
on
Linked
Response
on
Sync
Request
on
Synced
Response
on
Unlink
Request
on
Unlinked
Response
open
open
Up
pop
prio
push
rate
remove
set
set
State
shift
snapshot
splice
unobserve
unshift
value
Form
values
will
Clear
will
Drop
will
Link
will
Move
will
Remove
will
Sync
will
Take
will
Unlink
will
Update
init
Form
Generated using
TypeDoc