AWS Amplify API
AWS Amplify Home
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
AWSApp
Sync
Provider
constructor
_client
IdObservers
_topic
Observers
client
Id
clients
Queue
endpoint
isSSLEnabled
options
configure
connect
disconnect
get
Category
get
Provider
Name
get
Topic
For
Value
new
Client
on
Disconnect
publish
subscribe
Hierarchy
MqttOverWSProvider
AWSAppSyncProvider
Implements
PubSubProvider
Index
Constructors
constructor
Properties
_client
IdObservers
_topic
Observers
Accessors
client
Id
clients
Queue
endpoint
isSSLEnabled
options
Methods
configure
connect
disconnect
get
Category
get
Provider
Name
get
Topic
For
Value
new
Client
on
Disconnect
publish
subscribe
Constructors
constructor
new AWSApp
Sync
Provider
(
options
?:
MqttProvidertOptions
)
:
AWSAppSyncProvider
Parameters
Default value
options:
MqttProvidertOptions
= {}
Returns
AWSAppSyncProvider
Properties
Protected
_client
IdObservers
_client
IdObservers
:
Map
<
string
,
Set
<
SubscriptionObserver
<
any
>
>
>
= new Map()
Protected
_topic
Observers
_topic
Observers
:
Map
<
string
,
Set
<
SubscriptionObserver
<
any
>
>
>
= new Map()
Accessors
Protected
client
Id
client
Id
:
Protected
clients
Queue
clients
Queue
:
Protected
endpoint
endpoint
:
Protected
isSSLEnabled
isSSLEnabled
:
Protected
options
options
:
Methods
configure
configure
(
config
?:
ProvidertOptions
)
:
ProvidertOptions
Parameters
Default value
config:
ProvidertOptions
= {}
Returns
ProvidertOptions
Protected
connect
connect
(
clientId
:
string
, options
?:
MqttProvidertOptions
)
:
Promise
<
any
>
Parameters
clientId:
string
Default value
options:
MqttProvidertOptions
= {}
Returns
Promise
<
any
>
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
<
any
>
Parameters
__namedParameters:
object
client
Id
:
string
url
:
string
Returns
Promise
<
any
>
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
, options
?:
any
)
:
Promise
<
void
>
Parameters
topics:
string
[]
|
string
msg:
any
Optional
options:
any
Returns
Promise
<
void
>
subscribe
subscribe
(
topics
:
string
[]
|
string
, options
?:
any
)
:
Observable
<
any
>
Parameters
topics:
string
[]
|
string
Default value
options:
any
= {}
Returns
Observable
<
any
>