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
MapDownlink
Class MapDownlink<K, V, KU, VU>
Type parameters
K
V
KU =
never
VU =
never
Hierarchy
Downlink
MapOutletCombinators
<
K
,
V
,
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
MapDownlink
Implements
OrderedMap
<
K
,
V
>
MapInlet
<
K
,
V
,
Map
<
K
,
V
>
>
MapOutlet
<
K
,
V
,
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
Index
Constructors
constructor
Properties
context
effects
flags
input
model
observers
outlets
outputs
own
Body
own
Host
Uri
own
Key
Form
own
Lane
Uri
own
Node
Uri
own
Prio
own
Rate
own
Value
Form
owner
state0
version
Accessors
session
size
type
Methods
bind
Input
bind
Output
body
clear
close
close
Up
command
copy
decohere
decohere
Input
decohere
Input
Key
decohere
Key
decohere
Output
decohere
Output
Key
delete
did
Alias
Model
did
Clear
did
Close
did
Connect
did
Decohere
did
Decohere
Key
did
Disconnect
did
Drop
did
Fail
did
Link
did
Recohere
did
Recohere
Key
did
Remove
did
Sync
did
Take
did
Unlink
did
Update
disconnect
Inputs
disconnect
Outputs
drop
entries
filter
first
Entry
first
Key
first
Value
for
Each
get
get
Entry
has
host
Did
Connect
host
Did
Disconnect
host
Did
Fail
host
Uri
initial
State
is
Authenticated
is
Connected
is
Empty
is
Linked
is
Synced
keep
Linked
keep
Synced
key
Form
key
Iterator
keys
lane
Uri
last
Entry
last
Key
last
Value
map
map
Did
Clear
map
Did
Drop
map
Did
Remove
map
Did
Take
map
Did
Update
map
Will
Clear
map
Will
Drop
map
Will
Remove
map
Will
Take
map
Will
Update
memoize
next
Entry
next
Key
next
Value
node
Uri
observe
on
Command
on
Command
Message
on
Decohere
on
Decohere
Key
on
Event
on
Event
Message
on
Link
Request
on
Linked
Response
on
Recohere
on
Recohere
Key
on
Sync
Request
on
Synced
Response
on
Unlink
Request
on
Unlinked
Response
open
open
Up
outlet
output
Iterator
previous
Entry
previous
Key
previous
Value
prio
rate
recohere
recohere
Input
recohere
Input
Key
recohere
Key
recohere
Output
recohere
Output
Key
reduce
set
set
State
snapshot
take
unbind
Input
unbind
Output
unbind
Outputs
unobserve
value
Form
values
watch
will
Clear
will
Decohere
will
Decohere
Key
will
Drop
will
Link
will
Recohere
will
Recohere
Key
will
Remove
will
Sync
will
Take
will
Unlink
will
Update
init
Form
Constructors
constructor
new
Map
Downlink<K, V, KU, VU>
(
context
:
DownlinkContext
, owner
:
null
|
DownlinkOwner
, init
?:
MapDownlinkInit
<
K
,
V
,
KU
,
VU
>
, hostUri
?:
Uri
, nodeUri
?:
Uri
, laneUri
?:
Uri
, prio
?:
number
, rate
?:
number
, body
?:
Value
, flags
?:
number
, observers
?:
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
|
readonly
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
[]
, keyForm
?:
Form
<
K
,
KU
>
, valueForm
?:
Form
<
V
,
VU
>
, state0
?:
null
|
BTree
<
Value
,
Value
,
never
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Type parameters
K
V
KU =
never
VU =
never
Parameters
context:
DownlinkContext
owner:
null
|
DownlinkOwner
Optional
init:
MapDownlinkInit
<
K
,
V
,
KU
,
VU
>
Optional
hostUri:
Uri
Optional
nodeUri:
Uri
Optional
laneUri:
Uri
Optional
prio:
number
Optional
rate:
number
Optional
body:
Value
Optional
flags:
number
Optional
observers:
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
|
readonly
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
[]
Optional
keyForm:
Form
<
K
,
KU
>
Optional
valueForm:
Form
<
V
,
VU
>
Optional
state0:
null
|
BTree
<
Value
,
Value
,
never
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Properties
Readonly
context
context
:
DownlinkContext
Readonly
effects
effects
:
BTree
<
K
,
KeyEffect
,
never
>
Readonly
flags
flags
:
number
Readonly
input
input
:
null
|
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Readonly
model
model
:
null
|
MapDownlinkModel
Readonly
observers
observers
:
readonly
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
[]
Readonly
outlets
outlets
:
BTree
<
K
,
KeyOutlet
<
K
,
V
>
,
never
>
Readonly
outputs
outputs
:
readonly
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
[]
Readonly
own
Body
own
Body
:
Value
Readonly
own
Host
Uri
own
Host
Uri
:
Uri
Readonly
own
Key
Form
own
Key
Form
:
Form
<
K
,
KU
>
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
|
BTree
<
Value
,
Value
,
never
>
Readonly
version
version
:
number
Accessors
session
get
session
(
)
:
Value
Returns
Value
size
get
size
(
)
:
number
Returns
number
type
get
type
(
)
:
DownlinkType
Returns
DownlinkType
Methods
bind
Input
bind
Input
(
newInput
:
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
)
:
void
Parameters
newInput:
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Returns
void
bind
Output
bind
Output
(
output
:
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
)
:
void
Parameters
output:
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
Returns
void
body
body
(
)
:
Value
body
(
body
:
AnyValue
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
Value
Parameters
body:
AnyValue
Returns
MapDownlink
<
K
,
V
,
KU
,
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<K, V, KU, VU>
(
context
:
DownlinkContext
, owner
:
null
|
DownlinkOwner
, hostUri
:
Uri
, nodeUri
:
Uri
, laneUri
:
Uri
, prio
:
number
, rate
:
number
, body
:
Value
, flags
:
number
, observers
:
readonly
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
[]
, keyForm
?:
Form
<
K
,
KU
>
, valueForm
?:
Form
<
V
,
VU
>
, state0
?:
null
|
BTree
<
Value
,
Value
,
never
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Type parameters
K
V
KU
VU
Parameters
context:
DownlinkContext
owner:
null
|
DownlinkOwner
hostUri:
Uri
nodeUri:
Uri
laneUri:
Uri
prio:
number
rate:
number
body:
Value
flags:
number
observers:
readonly
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
[]
Optional
keyForm:
Form
<
K
,
KU
>
Optional
valueForm:
Form
<
V
,
VU
>
Optional
state0:
null
|
BTree
<
Value
,
Value
,
never
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
decohere
decohere
(
)
:
void
Returns
void
decohere
Input
decohere
Input
(
)
:
void
Returns
void
decohere
Input
Key
decohere
Input
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
decohere
Key
decohere
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
decohere
Output
decohere
Output
(
)
:
void
Returns
void
decohere
Output
Key
decohere
Output
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
delete
delete
(
key
:
K
|
KU
)
:
boolean
Parameters
key:
K
|
KU
Returns
boolean
Protected
did
Alias
Model
did
Alias
Model
(
)
:
void
Returns
void
did
Clear
did
Clear
(
didClear
:
MapDownlinkDidClear
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didClear:
MapDownlinkDidClear
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Close
did
Close
(
didClose
:
DownlinkDidClose
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didClose:
DownlinkDidClose
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Connect
did
Connect
(
didConnect
:
DownlinkDidConnect
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didConnect:
DownlinkDidConnect
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Protected
did
Decohere
did
Decohere
(
)
:
void
Returns
void
Protected
did
Decohere
Key
did
Decohere
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
did
Disconnect
did
Disconnect
(
didDisconnect
:
DownlinkDidDisconnect
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didDisconnect:
DownlinkDidDisconnect
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Drop
did
Drop
(
didDrop
:
MapDownlinkDidDrop
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didDrop:
MapDownlinkDidDrop
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Fail
did
Fail
(
didFail
:
DownlinkDidFail
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didFail:
DownlinkDidFail
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Link
did
Link
(
didLink
:
DownlinkDidLink
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didLink:
DownlinkDidLink
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Protected
did
Recohere
did
Recohere
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
did
Recohere
Key
did
Recohere
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
Returns
void
did
Remove
did
Remove
(
didRemove
:
MapDownlinkDidRemove
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didRemove:
MapDownlinkDidRemove
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Sync
did
Sync
(
didSync
:
DownlinkDidSync
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didSync:
DownlinkDidSync
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Take
did
Take
(
didTake
:
MapDownlinkDidTake
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didTake:
MapDownlinkDidTake
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Unlink
did
Unlink
(
didUnlink
:
DownlinkDidUnlink
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didUnlink:
DownlinkDidUnlink
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
did
Update
did
Update
(
didUpdate
:
MapDownlinkDidUpdate
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
didUpdate:
MapDownlinkDidUpdate
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
disconnect
Inputs
disconnect
Inputs
(
)
:
void
Returns
void
disconnect
Outputs
disconnect
Outputs
(
)
:
void
Returns
void
drop
drop
(
lower
:
number
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
lower:
number
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
entries
entries
(
)
:
Cursor
<
[
K
,
V
]
>
Returns
Cursor
<
[
K
,
V
]
>
filter
filter
(
func
:
FilterFieldsFunction
<
K
,
V
>
)
:
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
Parameters
func:
FilterFieldsFunction
<
K
,
V
>
Returns
MapOutlet
<
K
,
V
,
Map
<
K
,
V
>
>
first
Entry
first
Entry
(
)
:
undefined
|
[
K
,
V
]
Returns
undefined
|
[
K
,
V
]
first
Key
first
Key
(
)
:
undefined
|
K
Returns
undefined
|
K
first
Value
first
Value
(
)
:
undefined
|
V
Returns
undefined
|
V
for
Each
for
Each<T>
(
callback
:
(
key
:
K
, value
:
V
)
=>
void
|
T
)
:
undefined
|
T
for
Each<T, S>
(
callback
:
(
key
:
K
, value
:
V
)
=>
void
|
T
, thisArg
:
S
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
key
:
K
, value
:
V
)
=>
void
|
T
(
key
:
K
, value
:
V
)
:
void
|
T
Parameters
key:
K
value:
V
Returns
void
|
T
Returns
undefined
|
T
Type parameters
T
S
Parameters
callback:
(
key
:
K
, value
:
V
)
=>
void
|
T
(
key
:
K
, value
:
V
)
:
void
|
T
Parameters
key:
K
value:
V
Returns
void
|
T
thisArg:
S
Returns
undefined
|
T
get
get
(
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
get
(
key
:
K
|
KU
)
:
V
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
key:
K
|
KU
Returns
V
get
Entry
get
Entry
(
index
:
number
)
:
undefined
|
[
K
,
V
]
Parameters
index:
number
Returns
undefined
|
[
K
,
V
]
has
has
(
key
:
K
|
KU
)
:
boolean
Parameters
key:
K
|
KU
Returns
boolean
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
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
Uri
Parameters
hostUri:
AnyUri
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
initial
State
initial
State
(
)
:
null
|
BTree
<
Value
,
Value
,
never
>
initial
State
(
state0
:
null
|
BTree
<
Value
,
Value
,
never
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
null
|
BTree
<
Value
,
Value
,
never
>
Parameters
state0:
null
|
BTree
<
Value
,
Value
,
never
>
Returns
MapDownlink
<
K
,
V
,
KU
,
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
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
boolean
Parameters
keepLinked:
boolean
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
keep
Synced
keep
Synced
(
)
:
boolean
keep
Synced
(
keepSynced
:
boolean
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
boolean
Parameters
keepSynced:
boolean
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
key
Form
key
Form
(
)
:
Form
<
K
,
KU
>
key
Form<K2, K2U>
(
keyForm
:
Form
<
K2
,
K2U
>
)
:
MapDownlink
<
K2
,
V
,
K2U
,
VU
>
Returns
Form
<
K
,
KU
>
Type parameters
K2
K2U =
never
Parameters
keyForm:
Form
<
K2
,
K2U
>
Returns
MapDownlink
<
K2
,
V
,
K2U
,
VU
>
key
Iterator
key
Iterator
(
)
:
Cursor
<
K
>
Returns
Cursor
<
K
>
keys
keys
(
)
:
Cursor
<
K
>
Returns
Cursor
<
K
>
lane
Uri
lane
Uri
(
)
:
Uri
lane
Uri
(
laneUri
:
AnyUri
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
Uri
Parameters
laneUri:
AnyUri
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
last
Entry
last
Entry
(
)
:
undefined
|
[
K
,
V
]
Returns
undefined
|
[
K
,
V
]
last
Key
last
Key
(
)
:
undefined
|
K
Returns
undefined
|
K
last
Value
last
Value
(
)
:
undefined
|
V
Returns
undefined
|
V
map
map<O2>
(
func
:
MapValueFunction
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
,
O2
>
)
:
Outlet
<
O2
>
map<V2>
(
func
:
MapFieldValuesFunction
<
K
,
V
,
V2
>
)
:
MapOutlet
<
K
,
V2
,
Map
<
K
,
V2
>
>
Type parameters
O2
Parameters
func:
MapValueFunction
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
,
O2
>
Returns
Outlet
<
O2
>
Type parameters
V2
Parameters
func:
MapFieldValuesFunction
<
K
,
V
,
V2
>
Returns
MapOutlet
<
K
,
V2
,
Map
<
K
,
V2
>
>
map
Did
Clear
map
Did
Clear
(
)
:
void
Returns
void
map
Did
Drop
map
Did
Drop
(
lower
:
number
)
:
void
Parameters
lower:
number
Returns
void
map
Did
Remove
map
Did
Remove
(
key
:
Value
, oldValue
:
Value
)
:
void
Parameters
key:
Value
oldValue:
Value
Returns
void
map
Did
Take
map
Did
Take
(
upper
:
number
)
:
void
Parameters
upper:
number
Returns
void
map
Did
Update
map
Did
Update
(
key
:
Value
, newValue
:
Value
, oldValue
:
Value
)
:
void
Parameters
key:
Value
newValue:
Value
oldValue:
Value
Returns
void
map
Will
Clear
map
Will
Clear
(
)
:
void
Returns
void
map
Will
Drop
map
Will
Drop
(
lower
:
number
)
:
void
Parameters
lower:
number
Returns
void
map
Will
Remove
map
Will
Remove
(
key
:
Value
)
:
void
Parameters
key:
Value
Returns
void
map
Will
Take
map
Will
Take
(
upper
:
number
)
:
void
Parameters
upper:
number
Returns
void
map
Will
Update
map
Will
Update
(
key
:
Value
, newValue
:
Value
)
:
Value
Parameters
key:
Value
newValue:
Value
Returns
Value
memoize
memoize
(
)
:
MapOutlet
<
K
,
V
,
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
Returns
MapOutlet
<
K
,
V
,
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
next
Entry
next
Entry
(
keyObject
:
K
)
:
undefined
|
[
K
,
V
]
Parameters
keyObject:
K
Returns
undefined
|
[
K
,
V
]
next
Key
next
Key
(
keyObject
:
K
)
:
undefined
|
K
Parameters
keyObject:
K
Returns
undefined
|
K
next
Value
next
Value
(
keyObject
:
K
)
:
undefined
|
V
Parameters
keyObject:
K
Returns
undefined
|
V
node
Uri
node
Uri
(
)
:
Uri
node
Uri
(
nodeUri
:
AnyUri
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
Uri
Parameters
nodeUri:
AnyUri
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
observe
observe
(
observer
:
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
observer:
MapDownlinkObserver
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
on
Command
on
Command
(
onCommand
:
DownlinkOnCommand
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
onCommand:
DownlinkOnCommand
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
on
Command
Message
on
Command
Message
(
body
:
Value
)
:
void
Parameters
body:
Value
Returns
void
Protected
on
Decohere
on
Decohere
(
)
:
void
Returns
void
Protected
on
Decohere
Key
on
Decohere
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
on
Event
on
Event
(
onEvent
:
DownlinkOnEvent
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
onEvent:
DownlinkOnEvent
Returns
MapDownlink
<
K
,
V
,
KU
,
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
Protected
on
Recohere
on
Recohere
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
on
Recohere
Key
on
Recohere
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
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
(
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
open
Up
open
Up
(
host
:
Host
)
:
void
Parameters
host:
Host
Returns
void
outlet
outlet
(
key
:
K
)
:
Outlet
<
V
>
Parameters
key:
K
Returns
Outlet
<
V
>
output
Iterator
output
Iterator
(
)
:
Cursor
<
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
>
Returns
Cursor
<
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
>
previous
Entry
previous
Entry
(
keyObject
:
K
)
:
undefined
|
[
K
,
V
]
Parameters
keyObject:
K
Returns
undefined
|
[
K
,
V
]
previous
Key
previous
Key
(
keyObject
:
K
)
:
undefined
|
K
Parameters
keyObject:
K
Returns
undefined
|
K
previous
Value
previous
Value
(
keyObject
:
K
)
:
undefined
|
V
Parameters
keyObject:
K
Returns
undefined
|
V
prio
prio
(
)
:
number
prio
(
prio
:
number
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
number
Parameters
prio:
number
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
rate
rate
(
)
:
number
rate
(
rate
:
number
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Returns
number
Parameters
rate:
number
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
recohere
recohere
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
recohere
Input
recohere
Input
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
recohere
Input
Key
recohere
Input
Key
(
key
:
K
, version
:
number
)
:
void
Parameters
key:
K
version:
number
Returns
void
recohere
Key
recohere
Key
(
key
:
K
, version
:
number
)
:
void
Parameters
key:
K
version:
number
Returns
void
recohere
Output
recohere
Output
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
recohere
Output
Key
recohere
Output
Key
(
key
:
K
, version
:
number
)
:
void
Parameters
key:
K
version:
number
Returns
void
reduce
reduce<U>
(
identity
:
U
, accumulator
:
(
result
:
U
, element
:
V
)
=>
U
, combiner
:
(
result
:
U
, result2
:
U
)
=>
U
)
:
Outlet
<
U
>
Type parameters
U
Parameters
identity:
U
accumulator:
(
result
:
U
, element
:
V
)
=>
U
(
result
:
U
, element
:
V
)
:
U
Parameters
result:
U
element:
V
Returns
U
combiner:
(
result
:
U
, result2
:
U
)
=>
U
(
result
:
U
, result2
:
U
)
:
U
Parameters
result:
U
result2:
U
Returns
U
Returns
Outlet
<
U
>
set
set
(
key
:
K
|
KU
, newValue
:
V
|
VU
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
key:
K
|
KU
newValue:
V
|
VU
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
set
State
set
State
(
state
:
BTree
<
Value
,
Value
,
never
>
)
:
void
Parameters
state:
BTree
<
Value
,
Value
,
never
>
Returns
void
snapshot
snapshot
(
)
:
BTree
<
Value
,
Value
,
never
>
Returns
BTree
<
Value
,
Value
,
never
>
take
take
(
upper
:
number
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
upper:
number
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
unbind
Input
unbind
Input
(
)
:
void
Returns
void
unbind
Output
unbind
Output
(
output
:
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
)
:
void
Parameters
output:
Inlet
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
Returns
void
unbind
Outputs
unbind
Outputs
(
)
:
void
Returns
void
unobserve
unobserve
(
observer
:
unknown
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
observer:
unknown
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
value
Form
value
Form
(
)
:
Form
<
V
,
VU
>
value
Form<V2, V2U>
(
valueForm
:
Form
<
V2
,
V2U
>
)
:
MapDownlink
<
K
,
V2
,
KU
,
V2U
>
Returns
Form
<
V
,
VU
>
Type parameters
V2
V2U =
never
Parameters
valueForm:
Form
<
V2
,
V2U
>
Returns
MapDownlink
<
K
,
V2
,
KU
,
V2U
>
values
values
(
)
:
Cursor
<
V
>
Returns
Cursor
<
V
>
watch
watch
(
func
:
WatchValueFunction
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
watch
(
func
:
WatchFieldsFunction
<
K
,
V
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
func:
WatchValueFunction
<
MapDownlink
<
K
,
V
,
KU
,
VU
>
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
func:
WatchFieldsFunction
<
K
,
V
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Clear
will
Clear
(
willClear
:
MapDownlinkWillClear
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willClear:
MapDownlinkWillClear
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Protected
will
Decohere
will
Decohere
(
)
:
void
Returns
void
Protected
will
Decohere
Key
will
Decohere
Key
(
key
:
K
, effect
:
KeyEffect
)
:
void
Parameters
key:
K
effect:
KeyEffect
Returns
void
will
Drop
will
Drop
(
willDrop
:
MapDownlinkWillDrop
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willDrop:
MapDownlinkWillDrop
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Link
will
Link
(
willLink
:
DownlinkWillLink
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willLink:
DownlinkWillLink
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
Protected
will
Recohere
will
Recohere
(
version
:
number
)
:
void
Parameters
version:
number
Returns
void
Protected
will
Recohere
Key
will
Recohere
Key
(
key
:
K
, effect
:
KeyEffect
, version
:
number
)
:
void
Parameters
key:
K
effect:
KeyEffect
version:
number
Returns
void
will
Remove
will
Remove
(
willRemove
:
MapDownlinkWillRemove
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willRemove:
MapDownlinkWillRemove
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Sync
will
Sync
(
willSync
:
DownlinkWillSync
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willSync:
DownlinkWillSync
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Take
will
Take
(
willTake
:
MapDownlinkWillTake
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willTake:
MapDownlinkWillTake
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Unlink
will
Unlink
(
willUnlink
:
DownlinkWillUnlink
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willUnlink:
DownlinkWillUnlink
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
will
Update
will
Update
(
willUpdate
:
MapDownlinkWillUpdate
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
willUpdate:
MapDownlinkWillUpdate
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
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
Map
Downlink
constructor
context
effects
flags
input
model
observers
outlets
outputs
own
Body
own
Host
Uri
own
Key
Form
own
Lane
Uri
own
Node
Uri
own
Prio
own
Rate
own
Value
Form
owner
state0
version
session
size
type
bind
Input
bind
Output
body
clear
close
close
Up
command
copy
decohere
decohere
Input
decohere
Input
Key
decohere
Key
decohere
Output
decohere
Output
Key
delete
did
Alias
Model
did
Clear
did
Close
did
Connect
did
Decohere
did
Decohere
Key
did
Disconnect
did
Drop
did
Fail
did
Link
did
Recohere
did
Recohere
Key
did
Remove
did
Sync
did
Take
did
Unlink
did
Update
disconnect
Inputs
disconnect
Outputs
drop
entries
filter
first
Entry
first
Key
first
Value
for
Each
get
get
Entry
has
host
Did
Connect
host
Did
Disconnect
host
Did
Fail
host
Uri
initial
State
is
Authenticated
is
Connected
is
Empty
is
Linked
is
Synced
keep
Linked
keep
Synced
key
Form
key
Iterator
keys
lane
Uri
last
Entry
last
Key
last
Value
map
map
Did
Clear
map
Did
Drop
map
Did
Remove
map
Did
Take
map
Did
Update
map
Will
Clear
map
Will
Drop
map
Will
Remove
map
Will
Take
map
Will
Update
memoize
next
Entry
next
Key
next
Value
node
Uri
observe
on
Command
on
Command
Message
on
Decohere
on
Decohere
Key
on
Event
on
Event
Message
on
Link
Request
on
Linked
Response
on
Recohere
on
Recohere
Key
on
Sync
Request
on
Synced
Response
on
Unlink
Request
on
Unlinked
Response
open
open
Up
outlet
output
Iterator
previous
Entry
previous
Key
previous
Value
prio
rate
recohere
recohere
Input
recohere
Input
Key
recohere
Key
recohere
Output
recohere
Output
Key
reduce
set
set
State
snapshot
take
unbind
Input
unbind
Output
unbind
Outputs
unobserve
value
Form
values
watch
will
Clear
will
Decohere
will
Decohere
Key
will
Drop
will
Link
will
Recohere
will
Recohere
Key
will
Remove
will
Sync
will
Take
will
Unlink
will
Update
init
Form
Generated using
TypeDoc