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
WebSocketHost
Class WebSocketHost
Hierarchy
RemoteHost
WebSocketHost
Index
Constructors
constructor
Properties
authenticated
context
downlink
Count
downlinks
host
Uri
idle
Timer
options
reconnect
Timeout
reconnect
Timer
send
Buffer
session
socket
uri
Cache
Idle
Timeout
Max
Reconnect
Timeout
Send
Buffer
Size
Unlink
Delay
Accessors
Web
Socket
credentials
idle
Timeout
max
Reconnect
Timeout
send
Buffer
Size
unlink
Delay
Methods
authenticate
check
Idle
clear
Idle
clear
Reconnect
close
close
Downlink
close
Up
command
is
Authenticated
is
Connected
is
Idle
on
Auth
Request
on
Authed
Response
on
Command
Message
on
Connect
on
Deauth
Request
on
Deauthed
Response
on
Disconnect
on
Envelope
on
Error
on
Event
Message
on
Link
Request
on
Linked
Response
on
Sync
Request
on
Synced
Response
on
Unknown
Envelope
on
Unlink
Request
on
Unlinked
Response
on
Web
Socket
Close
on
Web
Socket
Error
on
Web
Socket
Message
on
Web
Socket
Open
open
open
Downlink
push
reconnect
resolve
unlink
Downlink
unresolve
watch
Idle
Constructors
constructor
new
Web
Socket
Host
(
context
:
HostContext
, hostUri
:
Uri
, options
?:
WebSocketHostOptions
)
:
WebSocketHost
Parameters
context:
HostContext
hostUri:
Uri
Optional
options:
WebSocketHostOptions
Returns
WebSocketHost
Properties
Readonly
authenticated
authenticated
:
boolean
Readonly
context
context
:
HostContext
Readonly
downlink
Count
downlink
Count
:
number
Readonly
downlinks
downlinks
:
BTree
<
Uri
,
BTree
<
Uri
,
HostDownlink
,
never
>
,
never
>
Readonly
host
Uri
host
Uri
:
Uri
idle
Timer
idle
Timer
:
number
Readonly
options
options
:
WebSocketHostOptions
reconnect
Timeout
reconnect
Timeout
:
number
reconnect
Timer
reconnect
Timer
:
number
Readonly
send
Buffer
send
Buffer
:
Envelope
[]
Readonly
session
session
:
Value
Readonly
socket
socket
:
null
|
WebSocket
Readonly
uri
Cache
uri
Cache
:
UriCache
Static
Readonly
Idle
Timeout
Idle
Timeout
:
number
Static
Readonly
Max
Reconnect
Timeout
Max
Reconnect
Timeout
:
number
Static
Readonly
Send
Buffer
Size
Send
Buffer
Size
:
number
Static
Readonly
Unlink
Delay
Unlink
Delay
:
number
Accessors
Web
Socket
get
WebSocket
(
)
:
null
|
WebSocketConstructor
Returns
null
|
WebSocketConstructor
credentials
get
credentials
(
)
:
Value
Returns
Value
idle
Timeout
get
idleTimeout
(
)
:
number
Returns
number
max
Reconnect
Timeout
get
maxReconnectTimeout
(
)
:
number
Returns
number
send
Buffer
Size
get
sendBufferSize
(
)
:
number
Returns
number
unlink
Delay
get
unlinkDelay
(
)
:
number
Returns
number
Methods
authenticate
authenticate
(
credentials
:
AnyValue
)
:
void
Parameters
credentials:
AnyValue
Returns
void
Protected
check
Idle
check
Idle
(
)
:
void
Returns
void
Protected
clear
Idle
clear
Idle
(
)
:
void
Returns
void
Protected
clear
Reconnect
clear
Reconnect
(
)
:
void
Returns
void
close
close
(
)
:
void
Returns
void
close
Downlink
close
Downlink
(
downlink
:
HostDownlink
)
:
void
Parameters
downlink:
HostDownlink
Returns
void
close
Up
close
Up
(
)
:
void
Returns
void
command
command
(
nodeUri
:
AnyUri
, laneUri
:
AnyUri
, body
:
AnyValue
)
:
void
Parameters
nodeUri:
AnyUri
laneUri:
AnyUri
body:
AnyValue
Returns
void
is
Authenticated
is
Authenticated
(
)
:
boolean
Returns
boolean
is
Connected
is
Connected
(
)
:
boolean
Returns
boolean
is
Idle
is
Idle
(
)
:
boolean
Returns
boolean
Protected
on
Auth
Request
on
Auth
Request
(
request
:
AuthRequest
)
:
void
Parameters
request:
AuthRequest
Returns
void
Protected
on
Authed
Response
on
Authed
Response
(
response
:
AuthedResponse
)
:
void
Parameters
response:
AuthedResponse
Returns
void
Protected
on
Command
Message
on
Command
Message
(
message
:
CommandMessage
)
:
void
Parameters
message:
CommandMessage
Returns
void
Protected
on
Connect
on
Connect
(
)
:
void
Returns
void
Protected
on
Deauth
Request
on
Deauth
Request
(
request
:
DeauthRequest
)
:
void
Parameters
request:
DeauthRequest
Returns
void
Protected
on
Deauthed
Response
on
Deauthed
Response
(
response
:
DeauthedResponse
)
:
void
Parameters
response:
DeauthedResponse
Returns
void
Protected
on
Disconnect
on
Disconnect
(
)
:
void
Returns
void
Protected
on
Envelope
on
Envelope
(
envelope
:
Envelope
)
:
void
Parameters
envelope:
Envelope
Returns
void
Protected
on
Error
on
Error
(
error
?:
unknown
)
:
void
Parameters
Optional
error:
unknown
Returns
void
Protected
on
Event
Message
on
Event
Message
(
message
:
EventMessage
)
:
void
Parameters
message:
EventMessage
Returns
void
Protected
on
Link
Request
on
Link
Request
(
request
:
LinkRequest
)
:
void
Parameters
request:
LinkRequest
Returns
void
Protected
on
Linked
Response
on
Linked
Response
(
response
:
LinkedResponse
)
:
void
Parameters
response:
LinkedResponse
Returns
void
Protected
on
Sync
Request
on
Sync
Request
(
request
:
SyncRequest
)
:
void
Parameters
request:
SyncRequest
Returns
void
Protected
on
Synced
Response
on
Synced
Response
(
response
:
SyncedResponse
)
:
void
Parameters
response:
SyncedResponse
Returns
void
Protected
on
Unknown
Envelope
on
Unknown
Envelope
(
envelope
:
string
|
Envelope
)
:
void
Parameters
envelope:
string
|
Envelope
Returns
void
Protected
on
Unlink
Request
on
Unlink
Request
(
request
:
UnlinkRequest
)
:
void
Parameters
request:
UnlinkRequest
Returns
void
Protected
on
Unlinked
Response
on
Unlinked
Response
(
response
:
UnlinkedResponse
)
:
void
Parameters
response:
UnlinkedResponse
Returns
void
Protected
on
Web
Socket
Close
on
Web
Socket
Close
(
)
:
void
Returns
void
Protected
on
Web
Socket
Error
on
Web
Socket
Error
(
)
:
void
Returns
void
Protected
on
Web
Socket
Message
on
Web
Socket
Message
(
message
:
MessageEvent
<
any
>
)
:
void
Parameters
message:
MessageEvent
<
any
>
Returns
void
Protected
on
Web
Socket
Open
on
Web
Socket
Open
(
)
:
void
Returns
void
open
open
(
)
:
void
Returns
void
open
Downlink
open
Downlink
(
downlink
:
HostDownlink
)
:
void
Parameters
downlink:
HostDownlink
Returns
void
push
push
(
envelope
:
Envelope
)
:
void
Parameters
envelope:
Envelope
Returns
void
Protected
reconnect
reconnect
(
)
:
void
Returns
void
resolve
resolve
(
relative
:
AnyUri
)
:
Uri
Parameters
relative:
AnyUri
Returns
Uri
unlink
Downlink
unlink
Downlink
(
downlink
:
HostDownlink
)
:
void
Parameters
downlink:
HostDownlink
Returns
void
unresolve
unresolve
(
absolute
:
AnyUri
)
:
Uri
Parameters
absolute:
AnyUri
Returns
Uri
Protected
watch
Idle
watch
Idle
(
)
:
void
Returns
void
Modules
@swim/system
@swim/core
@swim/mesh
@swim/warp
@swim/client
@swim/toolkit
Web
Socket
Host
constructor
authenticated
context
downlink
Count
downlinks
host
Uri
idle
Timer
options
reconnect
Timeout
reconnect
Timer
send
Buffer
session
socket
uri
Cache
Idle
Timeout
Max
Reconnect
Timeout
Send
Buffer
Size
Unlink
Delay
Web
Socket
credentials
idle
Timeout
max
Reconnect
Timeout
send
Buffer
Size
unlink
Delay
authenticate
check
Idle
clear
Idle
clear
Reconnect
close
close
Downlink
close
Up
command
is
Authenticated
is
Connected
is
Idle
on
Auth
Request
on
Authed
Response
on
Command
Message
on
Connect
on
Deauth
Request
on
Deauthed
Response
on
Disconnect
on
Envelope
on
Error
on
Event
Message
on
Link
Request
on
Linked
Response
on
Sync
Request
on
Synced
Response
on
Unknown
Envelope
on
Unlink
Request
on
Unlinked
Response
on
Web
Socket
Close
on
Web
Socket
Error
on
Web
Socket
Message
on
Web
Socket
Open
open
open
Downlink
push
reconnect
resolve
unlink
Downlink
unresolve
watch
Idle
Generated using
TypeDoc