AWS Amplify JS API
AWS Amplify JS Dev Center
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Subscription
Processor
constructor
start
stop
Hierarchy
SubscriptionProcessor
Index
Constructors
constructor
Methods
start
stop
Constructors
constructor
new
Subscription
Processor
(
schema
:
InternalSchema
, syncPredicates
:
WeakMap
<
SchemaModel
,
ModelPredicate
<
any
>
|
null
>
, amplifyConfig
?:
Record
<
string
,
any
>
, authModeStrategy
:
AuthModeStrategy
, errorHandler
:
ErrorHandler
, amplifyContext
?:
AmplifyContext
)
:
SubscriptionProcessor
Parameters
schema:
InternalSchema
syncPredicates:
WeakMap
<
SchemaModel
,
ModelPredicate
<
any
>
|
null
>
Default value
amplifyConfig:
Record
<
string
,
any
>
= {}
authModeStrategy:
AuthModeStrategy
errorHandler:
ErrorHandler
Default value
amplifyContext:
AmplifyContext
= {Auth,InternalAPI,Cache,}
Returns
SubscriptionProcessor
Methods
start
start
(
)
:
[
Observable
<
CONTROL_MSG
>
,
Observable
<
[
TransformerMutationType
,
SchemaModel
,
PersistentModel
]
>
]
Returns
[
Observable
<
CONTROL_MSG
>
,
Observable
<
[
TransformerMutationType
,
SchemaModel
,
PersistentModel
]
>
]
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>