AWS Amplify JS API
AWS Amplify JS Dev Center
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
AWSApp
Sync
Real
Time
Provider
constructor
isSSLEnabled
options
close
configure
get
Category
get
New
Web
Socket
get
Provider
Name
new
Client
publish
subscribe
Hierarchy
AbstractPubSubProvider
<
AWSAppSyncRealTimeProviderOptions
>
AWSAppSyncRealTimeProvider
Implements
PubSubProvider
Index
Constructors
constructor
Accessors
isSSLEnabled
options
Methods
close
configure
get
Category
get
New
Web
Socket
get
Provider
Name
new
Client
publish
subscribe
Constructors
constructor
new AWSApp
Sync
Real
Time
Provider
(
options
?:
ProviderOptions
)
:
AWSAppSyncRealTimeProvider
Parameters
Default value
options:
ProviderOptions
= {}
Returns
AWSAppSyncRealTimeProvider
Accessors
Protected
isSSLEnabled
isSSLEnabled
:
Protected
options
options
:
Methods
close
close
(
)
:
void
Mark the socket closed and release all active listeners
Returns
void
configure
configure
(
config
:
AWSAppSyncRealTimeProviderOptions
)
:
AWSAppSyncRealTimeProviderOptions
Parameters
config:
AWSAppSyncRealTimeProviderOptions
Returns
AWSAppSyncRealTimeProviderOptions
get
Category
get
Category
(
)
:
string
Returns
string
get
New
Web
Socket
get
New
Web
Socket
(
url
:
string
, protocol
:
string
)
:
WebSocket
Parameters
url:
string
protocol:
string
Returns
WebSocket
get
Provider
Name
get
Provider
Name
(
)
:
string
Returns
string
new
Client
new
Client
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
publish
publish
(
_topics
:
string
[]
|
string
, _msg
:
PubSubContent
, _options
?:
AWSAppSyncRealTimeProviderOptions
)
:
Promise
<
void
>
Parameters
_topics:
string
[]
|
string
_msg:
PubSubContent
Optional
_options:
AWSAppSyncRealTimeProviderOptions
Returns
Promise
<
void
>
subscribe
subscribe
(
_topics
:
string
[]
|
string
, options
?:
AWSAppSyncRealTimeProviderOptions
, customUserAgentDetails
?:
CustomUserAgentDetails
)
:
Observable
<
Record
<
string
,
unknown
>
>
Parameters
_topics:
string
[]
|
string
Optional
options:
AWSAppSyncRealTimeProviderOptions
Optional
customUserAgentDetails:
CustomUserAgentDetails
Returns
Observable
<
Record
<
string
,
unknown
>
>
Mark the socket closed and release all active listeners