Search
Preparing search index...
The search index is not available
aws-amplify
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
AWSIoTProvider
Class AWSIoTProvider
Hierarchy
MqttOverWSProvider
AWSIoTProvider
Implements
any
Index
Constructors
constructor
Properties
_topic
Observers
Accessors
client
Id
clients
Queue
endpoint
options
region
Methods
configure
connect
disconnect
get
Category
get
Provider
Name
get
Topic
For
Value
new
Client
on
Disconnect
publish
subscribe
Constructors
constructor
new AWSIoTProvider
(
options
?:
MqttProvidertOptions
)
:
AWSIoTProvider
Parameters
Default value
options:
MqttProvidertOptions
= {}
Returns
AWSIoTProvider
Properties
Protected
_topic
Observers
_topic
Observers
:
Map
<
string
,
Set
<
SubscriptionObserver
<
any
>
>
>
= new Map()
Accessors
Protected
client
Id
get
clientId
(
)
:
any
Returns
any
Protected
clients
Queue
get
clientsQueue
(
)
:
ClientsQueue
Returns
ClientsQueue
Protected
endpoint
get
endpoint
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
Protected
options
get
options
(
)
:
ProvidertOptions
Returns
ProvidertOptions
Protected
region
get
region
(
)
:
any
Returns
any
Methods
configure
configure
(
config
?:
ProvidertOptions
)
:
ProvidertOptions
Parameters
Default value
config:
ProvidertOptions
= {}
Returns
ProvidertOptions
Protected
connect
connect
(
clientId
:
string
, options
?:
MqttProvidertOptions
)
:
Promise
<
Paho.Client
>
Parameters
clientId:
string
Default value
options:
MqttProvidertOptions
= {}
Returns
Promise
<
Paho.Client
>
Protected
disconnect
disconnect
(
clientId
:
string
)
:
Promise
<
void
>
Parameters
clientId:
string
Returns
Promise
<
void
>
get
Category
get
Category
(
)
:
string
Returns
string
get
Provider
Name
get
Provider
Name
(
)
:
string
Returns
string
Protected
get
Topic
For
Value
get
Topic
For
Value
(
value
:
any
)
:
any
Parameters
value:
any
Returns
any
new
Client
new
Client
(
__namedParameters
:
object
)
:
Promise
<
Paho.Client
>
Parameters
__namedParameters:
object
client
Id
:
string
url
:
string
Returns
Promise
<
Paho.Client
>
on
Disconnect
on
Disconnect
(
__namedParameters
:
object
)
:
void
Parameters
__namedParameters:
object
args
:
args
client
Id
:
any
error
Code
:
any
Returns
void
publish
publish
(
topics
:
string
[]
|
string
, msg
:
any
)
:
Promise
<
void
>
Parameters
topics:
string
[]
|
string
msg:
any
Returns
Promise
<
void
>
subscribe
subscribe
(
topics
:
string
[]
|
string
, options
?:
MqttProvidertOptions
)
:
Observable
<
any
>
Parameters
topics:
string
[]
|
string
Default value
options:
MqttProvidertOptions
= {}
Returns
Observable
<
any
>
Globals
AWSIoTProvider
constructor
_topic
Observers
client
Id
clients
Queue
endpoint
options
region
configure
connect
disconnect
get
Category
get
Provider
Name
get
Topic
For
Value
new
Client
on
Disconnect
publish
subscribe