Constructor
new ComponentSubscription(setup, connection)
Creates an instance of ComponentSubscription.
Parameters:
| Name | Type | Description |
|---|---|---|
setup |
Object | Configuration options for the subscription. |
connection |
Object | The connection object for managing the subscription. |
setup.component |
Object | The component object associated with the subscription. |
Members
component :Object
The component object associated with the subscription.
Type:
- Object
type :string
Type identifier for the subscription (component).
Type:
- string
Methods
appendComponent()
Appends the current component subscription to the connection.
setClientChangeListener()
Sets up the client change listener for component updates.
toClient()
Sends the component data to the client.
toClientError(error)
Sends error data to the client in case of component subscription error.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
Object | The error object to be sent to the client. |
updateComponent(mergeData)
Updates the component data by merging the provided data.
Parameters:
| Name | Type | Description |
|---|---|---|
mergeData |
Object | The data object to be merged with the component. |