AWS Amplify JS API
AWS Amplify JS Dev Center
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Abstract
Pub
Sub
Provider
constructor
options
configure
get
Category
get
Provider
Name
new
Client
publish
subscribe
Type parameters
T
:
ProviderOptions
Hierarchy
AbstractPubSubProvider
AWSAppSyncRealTimeProvider
MqttOverWSProvider
Implements
PubSubProvider
Index
Constructors
constructor
Accessors
options
Methods
configure
get
Category
get
Provider
Name
new
Client
publish
subscribe
Constructors
constructor
new
Abstract
Pub
Sub
Provider
(
options
:
T
)
:
AbstractPubSubProvider
Parameters
options:
T
Returns
AbstractPubSubProvider
Accessors
Protected
options
options
:
Methods
configure
configure
(
config
:
T
)
:
T
Parameters
config:
T
Returns
T
get
Category
get
Category
(
)
:
string
Returns
string
Abstract
get
Provider
Name
get
Provider
Name
(
)
:
string
Returns
string
Abstract
new
Client
new
Client
(
clientOptions
:
T
)
:
Promise
<
any
>
Parameters
clientOptions:
T
Returns
Promise
<
any
>
Abstract
publish
publish
(
topics
:
string
[]
|
string
, msg
:
PubSubContent
, options
?:
T
)
:
void
Parameters
topics:
string
[]
|
string
msg:
PubSubContent
Optional
options:
T
Returns
void
Abstract
subscribe
subscribe
(
topics
:
string
[]
|
string
, options
?:
T
, customUserAgentDetails
?:
CustomUserAgentDetails
)
:
Observable
<
PubSubContent
>
Parameters
topics:
string
[]
|
string
Optional
options:
T
Optional
customUserAgentDetails:
CustomUserAgentDetails
Returns
Observable
<
PubSubContent
>