Search
Preparing search index...
The search index is not available
@aardvarkxr/aardvark-react
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"gadget_endpoint"
CGadgetEndpoint
Class CGadgetEndpoint
Hierarchy
CAardvarkEndpoint
CGadgetEndpoint
Index
Constructors
constructor
Methods
allow
Reconnect
get
Endpoint
Id
get
Gadget
Manifest
on
Close
on
Message
on
Open
on
Set
Endpoint
Type
Response
register
Async
Handler
register
Handler
send
Message
send
Message
And
Wait
For
Response
send
Reply
Constructors
constructor
new CGadget
Endpoint
(
gadgetUri
:
string
, openHandler
:
OpenHandler
, defaultHandler
?:
AsyncMessageHandler
)
:
CGadgetEndpoint
Parameters
gadgetUri:
string
openHandler:
OpenHandler
Default value
defaultHandler:
AsyncMessageHandler
= null
Returns
CGadgetEndpoint
Methods
allow
Reconnect
allow
Reconnect
(
)
:
void
Returns
void
get
Endpoint
Id
get
Endpoint
Id
(
)
:
number
Returns
number
get
Gadget
Manifest
get
Gadget
Manifest
(
gadgetUri
:
string
)
:
Promise
<
AardvarkManifest
>
Parameters
gadgetUri:
string
Returns
Promise
<
AardvarkManifest
>
on
Close
on
Close
(
ev
:
CloseEvent
)
:
void
Parameters
ev:
CloseEvent
Returns
void
on
Message
on
Message
(
msgEvent
:
MessageEvent
)
:
Promise
<
void
>
Parameters
msgEvent:
MessageEvent
Returns
Promise
<
void
>
on
Open
on
Open
(
)
:
void
Returns
void
on
Set
Endpoint
Type
Response
on
Set
Endpoint
Type
Response
(
m
:
MsgSetEndpointTypeResponse
)
:
Promise
<
void
>
Parameters
m:
MsgSetEndpointTypeResponse
Returns
Promise
<
void
>
register
Async
Handler
register
Async
Handler
(
type
:
MessageType
, handler
:
AsyncMessageHandler
)
:
void
Parameters
type:
MessageType
handler:
AsyncMessageHandler
Returns
void
register
Handler
register
Handler
(
type
:
MessageType
, handler
:
MessageHandler
)
:
void
Parameters
type:
MessageType
handler:
MessageHandler
Returns
void
send
Message
send
Message
(
type
:
MessageType
, msg
:
any
, sendingNode
?:
number
)
:
number
Parameters
type:
MessageType
msg:
any
Optional
sendingNode:
number
Returns
number
send
Message
And
Wait
For
Response
send
Message
And
Wait
For
Response<T>
(
type
:
MessageType
, msg
:
any
, responseType
:
MessageType
)
:
Promise
<
[
T
,
Envelope
]
>
Type parameters
T
Parameters
type:
MessageType
msg:
any
responseType:
MessageType
Returns
Promise
<
[
T
,
Envelope
]
>
send
Reply
send
Reply
(
type
:
MessageType
, msg
:
any
, replyTo
:
Envelope
, sender
?:
EndpointAddr
)
:
void
Parameters
type:
MessageType
msg:
any
replyTo:
Envelope
Default value
sender:
EndpointAddr
= undefined
Returns
void
Globals
"gadget_
endpoint"
CGadget
Endpoint
constructor
allow
Reconnect
get
Endpoint
Id
get
Gadget
Manifest
on
Close
on
Message
on
Open
on
Set
Endpoint
Type
Response
register
Async
Handler
register
Handler
send
Message
send
Message
And
Wait
For
Response
send
Reply
Generated using
TypeDoc