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
WarpClient
Class WarpClient
Hierarchy
WarpClient
Implements
HostContext
RefContext
WarpRef
Index
Constructors
constructor
Properties
downlink
Count
downlinks
hosts
observers
online
options
refs
Methods
authenticate
close
close
Downlink
close
Host
close
Ref
command
did
Authenticate
did
Connect
did
Deauthenticate
did
Disconnect
did
Fail
downlink
downlink
List
downlink
Map
downlink
Value
get
Downlink
get
Host
host
Did
Authenticate
host
Did
Connect
host
Did
Deauthenticate
host
Did
Disconnect
host
Did
Fail
host
Ref
is
Online
keep
Online
lane
Ref
node
Ref
observe
on
Offline
on
Online
open
Downlink
open
Host
open
Ref
unlink
Downlink
unobserve
watch
Online
Constructors
constructor
new
Warp
Client
(
options
?:
WarpClientOptions
)
:
WarpClient
Parameters
Optional
options:
WarpClientOptions
Returns
WarpClient
Properties
Readonly
downlink
Count
downlink
Count
:
number
Readonly
downlinks
downlinks
:
BTree
<
Uri
,
BTree
<
Uri
,
BTree
<
Uri
,
DownlinkModel
,
never
>
,
never
>
,
never
>
Readonly
hosts
hosts
:
BTree
<
Uri
,
Host
,
never
>
Readonly
observers
observers
:
readonly
WarpObserver
[]
Readonly
online
online
:
boolean
Readonly
options
options
:
WarpClientOptions
Readonly
refs
refs
:
BaseRef
[]
Methods
authenticate
authenticate
(
hostUri
:
AnyUri
, credentials
:
AnyValue
)
:
void
Parameters
hostUri:
AnyUri
credentials:
AnyValue
Returns
void
close
close
(
)
:
void
Returns
void
close
Downlink
close
Downlink
(
downlink
:
DownlinkModel
)
:
void
Parameters
downlink:
DownlinkModel
Returns
void
close
Host
close
Host
(
host
:
Host
)
:
void
Parameters
host:
Host
Returns
void
close
Ref
close
Ref
(
ref
:
BaseRef
)
:
void
Parameters
ref:
BaseRef
Returns
void
command
command
(
hostUri
:
AnyUri
, nodeUri
:
AnyUri
, laneUri
:
AnyUri
, body
:
AnyValue
)
:
void
command
(
nodeUri
:
AnyUri
, laneUri
:
AnyUri
, body
:
AnyValue
)
:
void
Parameters
hostUri:
AnyUri
nodeUri:
AnyUri
laneUri:
AnyUri
body:
AnyValue
Returns
void
Parameters
nodeUri:
AnyUri
laneUri:
AnyUri
body:
AnyValue
Returns
void
did
Authenticate
did
Authenticate
(
didAuthenticate
:
WarpDidAuthenticate
)
:
WarpClient
Parameters
didAuthenticate:
WarpDidAuthenticate
Returns
WarpClient
did
Connect
did
Connect
(
didConnect
:
WarpDidConnect
)
:
WarpClient
Parameters
didConnect:
WarpDidConnect
Returns
WarpClient
did
Deauthenticate
did
Deauthenticate
(
didDeauthenticate
:
WarpDidDeauthenticate
)
:
WarpClient
Parameters
didDeauthenticate:
WarpDidDeauthenticate
Returns
WarpClient
did
Disconnect
did
Disconnect
(
didDisconnect
:
WarpDidDisconnect
)
:
WarpClient
Parameters
didDisconnect:
WarpDidDisconnect
Returns
WarpClient
did
Fail
did
Fail
(
didFail
:
WarpDidFail
)
:
WarpClient
Parameters
didFail:
WarpDidFail
Returns
WarpClient
downlink
downlink
(
init
?:
EventDownlinkInit
)
:
EventDownlink
Parameters
Optional
init:
EventDownlinkInit
Returns
EventDownlink
downlink
List
downlink
List
(
init
?:
ListDownlinkInit
<
Value
,
AnyValue
>
)
:
ListDownlink
<
Value
,
AnyValue
>
downlink
List<V, VU>
(
init
?:
ListDownlinkInit
<
V
,
VU
>
)
:
ListDownlink
<
V
,
VU
>
Parameters
Optional
init:
ListDownlinkInit
<
Value
,
AnyValue
>
Returns
ListDownlink
<
Value
,
AnyValue
>
Type parameters
V
VU =
never
Parameters
Optional
init:
ListDownlinkInit
<
V
,
VU
>
Returns
ListDownlink
<
V
,
VU
>
downlink
Map
downlink
Map
(
init
?:
MapDownlinkInit
<
Value
,
Value
,
AnyValue
,
AnyValue
>
)
:
MapDownlink
<
Value
,
Value
,
AnyValue
,
AnyValue
>
downlink
Map<K, V, KU, VU>
(
init
?:
MapDownlinkInit
<
K
,
V
,
KU
,
VU
>
)
:
MapDownlink
<
K
,
V
,
KU
,
VU
>
Parameters
Optional
init:
MapDownlinkInit
<
Value
,
Value
,
AnyValue
,
AnyValue
>
Returns
MapDownlink
<
Value
,
Value
,
AnyValue
,
AnyValue
>
Type parameters
K
V
KU =
never
VU =
never
Parameters
Optional
init:
MapDownlinkInit
<
K
,
V
,
KU
,
VU
>
Returns
MapDownlink
<
K
,
V
,
KU
,
VU
>
downlink
Value
downlink
Value
(
init
?:
ValueDownlinkInit
<
Value
,
AnyValue
>
)
:
ValueDownlink
<
Value
,
AnyValue
>
downlink
Value<V, VU>
(
init
?:
ValueDownlinkInit
<
V
,
VU
>
)
:
ValueDownlink
<
V
,
VU
>
Parameters
Optional
init:
ValueDownlinkInit
<
Value
,
AnyValue
>
Returns
ValueDownlink
<
Value
,
AnyValue
>
Type parameters
V
VU =
never
Parameters
Optional
init:
ValueDownlinkInit
<
V
,
VU
>
Returns
ValueDownlink
<
V
,
VU
>
get
Downlink
get
Downlink
(
hostUri
:
Uri
, nodeUri
:
Uri
, laneUri
:
Uri
)
:
undefined
|
DownlinkModel
Parameters
hostUri:
Uri
nodeUri:
Uri
laneUri:
Uri
Returns
undefined
|
DownlinkModel
get
Host
get
Host
(
hostUri
:
AnyUri
)
:
undefined
|
Host
Parameters
hostUri:
AnyUri
Returns
undefined
|
Host
host
Did
Authenticate
host
Did
Authenticate
(
body
:
Value
, host
:
Host
)
:
void
Parameters
body:
Value
host:
Host
Returns
void
host
Did
Connect
host
Did
Connect
(
host
:
Host
)
:
void
Parameters
host:
Host
Returns
void
host
Did
Deauthenticate
host
Did
Deauthenticate
(
body
:
Value
, host
:
Host
)
:
void
Parameters
body:
Value
host:
Host
Returns
void
host
Did
Disconnect
host
Did
Disconnect
(
host
:
Host
)
:
void
Parameters
host:
Host
Returns
void
host
Did
Fail
host
Did
Fail
(
error
:
unknown
, host
:
Host
)
:
void
Parameters
error:
unknown
host:
Host
Returns
void
host
Ref
host
Ref
(
hostUri
:
AnyUri
)
:
HostRef
Parameters
hostUri:
AnyUri
Returns
HostRef
is
Online
is
Online
(
)
:
boolean
is
Online
(
online
:
boolean
)
:
WarpClient
Returns
boolean
Parameters
online:
boolean
Returns
WarpClient
keep
Online
keep
Online
(
)
:
boolean
keep
Online
(
keepOnline
:
boolean
)
:
WarpClient
Returns
boolean
Parameters
keepOnline:
boolean
Returns
WarpClient
lane
Ref
lane
Ref
(
hostUri
:
AnyUri
, nodeUri
:
AnyUri
, laneUri
:
AnyUri
)
:
LaneRef
lane
Ref
(
nodeUri
:
AnyUri
, laneUri
:
AnyUri
)
:
LaneRef
Parameters
hostUri:
AnyUri
nodeUri:
AnyUri
laneUri:
AnyUri
Returns
LaneRef
Parameters
nodeUri:
AnyUri
laneUri:
AnyUri
Returns
LaneRef
node
Ref
node
Ref
(
hostUri
:
AnyUri
, nodeUri
:
AnyUri
)
:
NodeRef
node
Ref
(
nodeUri
:
AnyUri
)
:
NodeRef
Parameters
hostUri:
AnyUri
nodeUri:
AnyUri
Returns
NodeRef
Parameters
nodeUri:
AnyUri
Returns
NodeRef
observe
observe
(
observer
:
WarpObserver
)
:
WarpClient
Parameters
observer:
WarpObserver
Returns
WarpClient
Protected
on
Offline
on
Offline
(
event
:
Event
)
:
void
Parameters
event:
Event
Returns
void
Protected
on
Online
on
Online
(
event
:
Event
)
:
void
Parameters
event:
Event
Returns
void
open
Downlink
open
Downlink
(
downlink
:
DownlinkModel
)
:
void
Parameters
downlink:
DownlinkModel
Returns
void
open
Host
open
Host
(
hostUri
:
AnyUri
)
:
Host
Parameters
hostUri:
AnyUri
Returns
Host
open
Ref
open
Ref
(
ref
:
BaseRef
)
:
void
Parameters
ref:
BaseRef
Returns
void
unlink
Downlink
unlink
Downlink
(
downlink
:
DownlinkModel
)
:
void
Parameters
downlink:
DownlinkModel
Returns
void
unobserve
unobserve
(
observer
:
unknown
)
:
WarpClient
Parameters
observer:
unknown
Returns
WarpClient
Protected
watch
Online
watch
Online
(
keepOnline
:
boolean
)
:
void
Parameters
keepOnline:
boolean
Returns
void
Modules
@swim/runtime
@swim/core
@swim/host
@swim/warp
@swim/client
@swim/toolkit
Warp
Client
constructor
downlink
Count
downlinks
hosts
observers
online
options
refs
authenticate
close
close
Downlink
close
Host
close
Ref
command
did
Authenticate
did
Connect
did
Deauthenticate
did
Disconnect
did
Fail
downlink
downlink
List
downlink
Map
downlink
Value
get
Downlink
get
Host
host
Did
Authenticate
host
Did
Connect
host
Did
Deauthenticate
host
Did
Disconnect
host
Did
Fail
host
Ref
is
Online
keep
Online
lane
Ref
node
Ref
observe
on
Offline
on
Online
open
Downlink
open
Host
open
Ref
unlink
Downlink
unobserve
watch
Online
Generated using
TypeDoc